Jelix 1.6.40

jBasicErrorHandler
in package

Error handlers for the framework.

Replace the default PHP error handler

Table of Contents

$errorCode  : mixed
$initErrorMessages  : mixed
errorHandler()  : mixed
Error handler showing a simple error page Replace the default PHP error handler.
exceptionHandler()  : mixed
Exception handler showing a simple error page Replace the default PHP Exception handler
handleError()  : mixed
register()  : mixed

Properties

$errorCode

public static mixed $errorCode = array(E_ERROR => 'error', E_RECOVERABLE_ERROR => 'error', E_WARNING => 'warning', E_NOTICE => 'notice', E_DEPRECATED => 'deprecated', E_USER_ERROR => 'error', E_USER_WARNING => 'warning', E_USER_NOTICE => 'notice', E_USER_DEPRECATED => 'deprecated', E_STRICT => 'strict')

Methods

errorHandler()

Error handler showing a simple error page Replace the default PHP error handler.

public static errorHandler(int $errno, string $errmsg, string $filename, int $linenum) : mixed
Parameters
$errno : int

error code

$errmsg : string

error message

$filename : string

filename where the error appears

$linenum : int

line number where the error appears

Return values
mixed

exceptionHandler()

Exception handler showing a simple error page Replace the default PHP Exception handler

public static exceptionHandler(Exception $e) : mixed
Parameters
$e : Exception

the exception object

Return values
mixed

handleError()

public static handleError(mixed $type, mixed $code, mixed $message, mixed $file, mixed $line, mixed $trace) : mixed
Parameters
$type : mixed
$code : mixed
$message : mixed
$file : mixed
$line : mixed
$trace : mixed
Return values
mixed

Search results