rex_error_handler
in package
AbstractYes
Table of Contents
Methods
- getErrorType() : string
- Get a human readable string representing the given php error code.
- handleError() : bool
- Handles a error message.
- handleException() : never
- Handles the given Exception.
- register() : void
- Registers the class as php-error/exception handler.
- shutdown() : void
- Shutdown-handler which is called at the very end of the request.
- unregister() : void
- Unregisters the logger instance as php-error/exception handler.
Methods
getErrorType()
Get a human readable string representing the given php error code.
public
static getErrorType(int $errno) : string
Parameters
- $errno : int
-
a php error code, e.g. E_ERROR
Return values
stringhandleError()
Handles a error message.
public
static handleError(int $errno, string $errstr, string $errfile, int $errline) : bool
Parameters
- $errno : int
-
The error code to handle
- $errstr : string
-
The error message
- $errfile : string
-
The file in which the error occured
- $errline : int
-
The line of the file in which the error occured
Tags
Return values
boolhandleException()
Handles the given Exception.
public
static handleException(Throwable $exception) : never
Parameters
- $exception : Throwable
-
The Exception to handle
Return values
neverregister()
Registers the class as php-error/exception handler.
public
static register() : void
shutdown()
Shutdown-handler which is called at the very end of the request.
public
static shutdown() : void
unregister()
Unregisters the logger instance as php-error/exception handler.
public
static unregister() : void