Property | Type | Description | |
---|---|---|---|
$discardExistingOutput | whether to discard any existing page output before error display. Defaults to true. | ||
$exception | the exception that is being handled currently. | ||
$memoryReserveSize | the size of the reserved memory. A portion of memory is pre-allocated so that when an out-of-memory issue occurs, the error handler is able to handle the error with the help of this reserved memory. If you set this value to be 0, no memory will be reserved. Defaults to 256KB. |
Method | Description | |
---|---|---|
clearOutput ( ) | Removes all output echoed before calling this method. | |
convertExceptionToError ( |
Converts an exception into a PHP error. | |
convertExceptionToString ( |
Converts an exception into a simple string. | |
handleError ( integer $code, string $message, string $file, integer $line ) : boolean | Handles PHP execution errors such as warnings and notices. | |
handleException ( |
Handles uncaught PHP exceptions. | |
handleFatalError ( ) | Handles fatal PHP errors | |
handleHhvmError ( integer $code, string $message, string $file, integer $line, mixed $context, mixed $backtrace ) : boolean | Handles HHVM execution errors such as warnings and notices. | |
logException ( |
Logs the given exception | |
register ( ) | Register this error handler | |
unregister ( ) | Unregisters this error handler by restoring the PHP error and exception handlers. |
Method | Description | |
---|---|---|
handleFallbackExceptionMessage ( |
Handles exception thrown during exception processing in ErrorHandler::handleException. | |
renderException ( |
Renders the exception. |
public clearOutput ( ) |
public static convertExceptionToError ( |
||
$exception | the exception to convert to a PHP error. |
public static convertExceptionToString ( |
||
$exception | the exception being converted | |
return | string | the string representation of the exception. |
public handleError ( integer $code, string $message, string $file, integer $line ) : boolean | ||
$code | integer | the level of the error raised. |
$message | string | the error message. |
$file | string | the filename that the error was raised in. |
$line | integer | the line number the error was raised at. |
return | boolean | whether the normal error handler continues. |
public handleException ( |
||
$exception | the exception that is not caught |
protected handleFallbackExceptionMessage ( |
||
$exception | Exception that was thrown during main exception processing. | |
$previousException | Main exception processed in [[handleException()]]. |
public handleHhvmError ( integer $code, string $message, string $file, integer $line, mixed $context, mixed $backtrace ) : boolean | ||
$code | integer | the level of the error raised. |
$message | string | the error message. |
$file | string | the filename that the error was raised in. |
$line | integer | the line number the error was raised at. |
$context | mixed | |
$backtrace | mixed | trace of error |
return | boolean | whether the normal error handler continues. |
public logException ( |
||
$exception | the exception to be logged |
abstract protected renderException ( |
||
$exception | the exception to be rendered. |
public unregister ( ) |
public $discardExistingOutput |
public $memoryReserveSize |