* @property array $error The error details. Null if there is no error.
* @property string $versionInfo
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
...
...
@@ -62,11 +63,6 @@ class ErrorHandler extends ApplicationComponent
* @var integer maximum number of trace source code lines to be displayed. Defaults to 10.
*/
public$maxTraceSourceLines=10;
/**
* @var string the application administrator information (could be a name or email link). It is displayed in error pages to end users. Defaults to 'the webmaster'.
*/
public$adminInfo='the webmaster';
/**
* @var boolean whether to discard any existing page output before error display. Defaults to true.
*/
...
...
@@ -78,9 +74,12 @@ class ErrorHandler extends ApplicationComponent
*/
public$errorAction;
private$_error;
public$exceptionView='@yii/views/exception.php';
public$errorView='@yii/views/error.php';
/**
* @var \Exception the exception that is being handled currently
*/
public$exception;
public$compactOutput;
publicfunctioninit()
{
...
...
@@ -88,36 +87,26 @@ class ErrorHandler extends ApplicationComponent