web\ErrorHandler $maxTraceSourceLines

$maxTraceSourceLines public property Maximum number of trace source code lines to be displayed. Defaults to 13. public integer $maxTraceSourceLines = 13

web\ErrorHandler $maxSourceLines

$maxSourceLines public property Maximum number of source code lines to be displayed. Defaults to 19. public integer $maxSourceLines = 19

web\ErrorHandler $errorView

$errorView public property The path of the view file for rendering exceptions without call stack information. public string $errorView = '@yii/views/errorHandler/error.php'

web\ErrorHandler $displayVars

$displayVars public property (available since version 2.0.7) List of the PHP predefined variables that should be displayed on the error page. Note that a variable must be accessible via $GLOBALS. Otherwise it won't be displayed. Defaults to ['_GET', '_POST', '_FILES', '_COOKIE', '_SESSION']. See also renderRequest(). public array $displayVars = ['_GET', '_POST', '_FILES', '_COOKIE', '_SESSION']

web\ErrorHandler $callStackItemView

$callStackItemView public property The path of the view file for rendering exceptions and errors call stack element. public string $callStackItemView = '@yii/views/errorHandler/callStackItem.php'

web\ErrorHandler $errorAction

$errorAction public property The route (e.g. site/error) to the controller action that will be used to display external errors. Inside the action, it can retrieve the error information using Yii::$app->errorHandler->exception. This property defaults to null, meaning ErrorHandler will handle the error display. public string $errorAction = null

web\ErrorAction $defaultMessage

$defaultMessage public property The message to be displayed when the exception message contains sensitive information. Defaults to "An internal server error occurred.". public string $defaultMessage = null

web\ErrorAction $view

$view public property The view file to be rendered. If not set, it will take the value of $id. That means, if you name the action as "error" in "SiteController", then the view name would be "error", and the corresponding view file would be "views/site/error.php". public string $view = null

web\ErrorAction $defaultName

$defaultName public property The name of the error when the exception name cannot be determined. Defaults to "Error". public string $defaultName = null

web\ErrorAction run()

run() public method Runs the action public string run ( )return string Result content