Class AppError
BEdita/cake error handler (backends+frontends)
- ErrorHandler
- AppError
Located at app_error.php
Methods summary
public
|
|
public
|
|
private
|
|
protected
|
|
protected
|
|
protected
string
|
#
getViewFile( )
Return the error template to use The template depends from http status code triggered from Exception |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
private
|
|
public
|
|
public
|
|
public
string|null
|
|
public
string
|
#
getMessage( )
Return the error message If an exception has created the error use its message else try to read some View vars set by CakePHP |
Properties summary
protected
array
|
$error404
CakePHP errors that will be treated as 404 http errors All other CakePHP errors will be treated as 500 http errors |
#
array('missingController', 'missingAction')
|
protected
string
|
$errorTrace
The exception error trace |
#
''
|
protected
integer
|
$debugLevel
Current app debug level |
|
protected
Exception
|
$exception
The Exception that has been thrown |
#
null
|
protected
array
|
$error
Error data set for View It is set also as '_serialize' view var so that ResponseHandlerComponent can use it to send to the client as payload In json/xml requests |
#
array(
'status' => null,
'code' => null,
'message' => null,
'details' => null,
'more_info' => null,
'url' => null
)
|
protected
string
|
$layout
The layout to use (default is 'error') |
#
'error'
|