\ExceptionThrower

Utility for catching PHP errors and converting them to an exception that can be caught at runtime

Summary

Methods
Properties
Constants
Start()
Stop()
HandleError()
$IGNORE_DEPRECATED
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$IGNORE_DEPRECATED

$IGNORE_DEPRECATED : 

Type

Methods

Start()

Start(integer  $level = null) 

Start redirecting PHP errors

Parameters

integer $level

PHP Error level to catch (Default = E_ALL & ~E_DEPRECATED)

Stop()

Stop() 

Stop redirecting PHP errors

HandleError()

HandleError(string  $code, string  $string, string  $file, string  $line, string  $context) 

Fired by the PHP error handler function. Calling this function will always throw an exception unless error_reporting == 0. If the PHP command is called with @ preceeding it, then it will be ignored here as well.

Parameters

string $code
string $string
string $file
string $line
string $context