PHP Class Ergo\Error\ErrorProxy

Show file Open project: 99designs/ergo

Public Methods

Method Description
__construct ( $application ) Constructor
_handleError ( $errno, $errstr, $errfile, $errline, $context = null ) PHP error handler interface
_handleException ( $e ) PHP exception handler interface
_shutdown ( ) PHP shutdown function to catch fatal errors
register ( ) Registers the error handler with PHP
unregister ( ) Attempts to unregister the error handler, restores the previous

Private Methods

Method Description
_errorNumberString ( $intval ) Converts a PHP error int to a string

Method Details

__construct() public method

Constructor
public __construct ( $application )

_handleError() public method

PHP error handler interface
See also: set_error_handler
public _handleError ( $errno, $errstr, $errfile, $errline, $context = null )

_handleException() public method

PHP exception handler interface
See also: set_exception_handler
public _handleException ( $e )

_shutdown() public method

PHP shutdown function to catch fatal errors
See also: http://www.eggplant.ws/blog/php/mayday-php-going-down/
See also: register_shutdown_function
public _shutdown ( )

register() public method

Registers the error handler with PHP
public register ( )

unregister() public method

Attempts to unregister the error handler, restores the previous
public unregister ( )