Detailed Description

ErrorHandler catches all php errors and transforms fatal errors into ErrorExceptions and non-fatal into log messages.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 19 of file ErrorHandler.php.

Public Member Functions

 __construct ()
 
 handleError ($errno, $errstr, $errfile, $errline)
 
 handleException ($ex)
 

Static Public Member Functions

static getStackTrace ()
 

Static Public Attributes

static E_RECOVERABLE_ERROR => '']
 

Constructor & Destructor Documentation

__construct ( )

Constructor.

Definition at line 29 of file ErrorHandler.php.

Member Function Documentation

static getStackTrace ( )
static

Get the stack trace.

Returns
The stack trace as string

Definition at line 41 of file ErrorHandler.php.

handleError (   $errno,
  $errstr,
  $errfile,
  $errline 
)

Error handler.

Parameters
$errno
$errstr
$errfile
$errline
Returns
Boolean
Exceptions
ErrorException

Definition at line 62 of file ErrorHandler.php.

handleException (   $ex)

Exception handler.

Parameters
$ex

Definition at line 81 of file ErrorHandler.php.

Member Data Documentation

E_RECOVERABLE_ERROR => '']
static

Definition at line 22 of file ErrorHandler.php.