\rex_error_handler

Summary

Methods
Properties
Constants
register()
unregister()
handleException()
handleError()
shutdown()
getErrorType()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

register()

register() : mixed

Registers the class as php-error/exception handler.

Returns

mixed —

unregister()

unregister() : mixed

Unregisters the logger instance as php-error/exception handler.

Returns

mixed —

handleException()

handleException(\Throwable|\Exception  $exception) : mixed

Handles the given Exception.

Parameters

\Throwable|\Exception $exception

The Exception to handle

Returns

mixed —

handleError()

handleError(int  $errno, string  $errstr, string  $errfile, int  $errline) : mixed

Handles a error message.

Parameters

int $errno

The error code to handle

string $errstr

The error message

string $errfile

The file in which the error occured

int $errline

The line of the file in which the error occured

Throws

\ErrorException

Returns

mixed —

shutdown()

shutdown() : mixed

Shutdown-handler which is called at the very end of the request.

Returns

mixed —

getErrorType()

getErrorType(int  $errno) : string

Get a human readable string representing the given php error code.

Parameters

int $errno

a php error code, e.g. E_ERROR

Returns

string —