base\ErrorHandler handleException()

handleException() public method Handles uncaught PHP exceptions. This method is implemented as a PHP exception handler. public void handleException ( $exception )$exception Exception The exception that is not caught

base\ErrorHandler handleError()

handleError() public method Handles PHP execution errors such as warnings and notices. This method is used as a PHP error handler. It will simply raise an yii\base\ErrorException. public boolean handleError ( $code, $message, $file, $line )$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 conti

base\ErrorHandler $discardExistingOutput

$discardExistingOutput public property Whether to discard any existing page output before error display. Defaults to true. public boolean $discardExistingOutput = true

base\ErrorHandler $exception

$exception public property The exception that is being handled currently. public Exception $exception = null

base\ErrorHandler convertExceptionToError()

convertExceptionToError() public static method Converts an exception into a PHP error. This method can be used to convert exceptions inside of methods like __toString() to PHP errors because exceptions cannot be thrown inside of them. public static void convertExceptionToError ( $exception )$exception Exception The exception to convert to a PHP error.

base\ErrorHandler clearOutput()

clearOutput() public method Removes all output echoed before calling this method. public void clearOutput ( )

base\ErrorHandler $memoryReserveSize

$memoryReserveSize public property 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. public integer $memoryReserveSize = 262144

base\ErrorException getName()

getName() public method public string getName ( )return string The user-friendly name of this exception

base\ErrorException __construct()

__construct() public method Constructs the exception. public void __construct ( $message = '', $code = 0, $severity = 1, $filename = __FILE__, $lineno = __LINE__, Exception $previous = null )$message [optional] $code [optional] $severity [optional] $filename [optional] $lineno [optional] $previous [optional]

base\ErrorException isFatalError()

isFatalError() public static method Returns if error is one of fatal type. public static boolean isFatalError ( $error )$error array Error got from error_get_last() return boolean If error is one of fatal type