Zend Framework  3.0
Static Public Member Functions | Static Protected Attributes | List of all members
ErrorHandler Class Reference

ErrorHandler that can be used to catch internal PHP errors and convert to an ErrorException instance. More...

Static Public Member Functions

static started ()
 Check if this error handler is active.
 
static getNestedLevel ()
 Get the current nested level.
 
static start ($errorLevel=\E_WARNING)
 Starting the error handler.
 
static stop ($throw=false)
 Stopping the error handler.
 
static clean ()
 Stop all active handler.
 
static addError ($errno, $errstr= '', $errfile= '', $errline=0)
 Add an error to the stack.
 

Static Protected Attributes

static $stack = []
 

Detailed Description

ErrorHandler that can be used to catch internal PHP errors and convert to an ErrorException instance.

Member Function Documentation

static addError (   $errno,
  $errstr = '',
  $errfile = '',
  $errline = 0 
)
static

Add an error to the stack.

Parameters
int$errno
string$errstr
string$errfile
int$errline
Returns
void
static clean ( )
static

Stop all active handler.

Returns
void
static getNestedLevel ( )
static

Get the current nested level.

Returns
int
static start (   $errorLevel = \E_WARNING)
static

Starting the error handler.

Parameters
int$errorLevel
static started ( )
static

Check if this error handler is active.

Returns
bool
static stop (   $throw = false)
static

Stopping the error handler.

Parameters
bool$throwThrow the ErrorException if any
Returns
null|ErrorException
Exceptions
ErrorExceptionIf an error has been catched and $throw is true

Member Data Documentation

$stack = []
staticprotected