Documentation

ErrorHandler
in package

Exception error handler class.

Table of Contents

$levelNames  : array<string|int, string>
Errors level.
error2string()  : array<string|int, string>
Convert error number to string.
errorHandler()  : void
PHP error handler function.
fatalHandler()  : void
PHP fatal handler function.
init()  : void
Error init.

Properties

$levelNames

Errors level.

private static array<string|int, string> $levelNames = [E_ERROR => 'E_ERROR', E_WARNING => 'E_WARNING', E_PARSE => 'E_PARSE', E_NOTICE => 'E_NOTICE', E_STRICT => 'E_STRICT', E_CORE_ERROR => 'E_CORE_ERROR', E_CORE_WARNING => 'E_CORE_WARNING', E_COMPILE_ERROR => 'E_COMPILE_ERROR', E_COMPILE_WARNING => 'E_COMPILE_WARNING', E_USER_ERROR => 'E_USER_ERROR', E_USER_WARNING => 'E_USER_WARNING', E_USER_NOTICE => 'E_USER_NOTICE']

Methods

error2string()

Convert error number to string.

public static error2string(int $value) : array<string|int, string>
Parameters
$value : int
Return values
array<string|int, string>

fatalHandler()

PHP fatal handler function.

public static fatalHandler() : void
Return values
void

init()

Error init.

public static init() : void
Return values
void

        

Search results