Property | Type | Description | |
---|---|---|---|
$exceptionalErrors | array |
Method | Description | |
---|---|---|
__construct ( ) | Constructs this error handler - registers itself as the default error handler. | |
handleError ( integer $errorLevel, string $errorMessage, string $errorFile, integer $errorLine ) : void | Handles an error by converting it into an exception. | |
setExceptionalErrors ( array $exceptionalErrors ) : void | Defines which error levels result should result in an exception thrown. |
public __construct ( ) |
public handleError ( integer $errorLevel, string $errorMessage, string $errorFile, integer $errorLine ) : void | ||
$errorLevel | integer | The error level - one of the E_* constants |
$errorMessage | string | The error message |
$errorFile | string | Name of the file the error occurred in |
$errorLine | integer | Line number where the error occurred |
return | void |
public setExceptionalErrors ( array $exceptionalErrors ) : void | ||
$exceptionalErrors | array | An array of E_* error levels |
return | void |