Jelix 1.8.14-pre

jBasicErrorHandler
in package

Error handlers for the framework.

Replace the default PHP error handler.

Tags

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')
Tags

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

Tags
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

Tags
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
Tags
Return values
mixed

Search results