classes/Ergo/Error/ErrorProxy.php
public function _handleError($errno, $errstr, $errfile, $errline, $context=null)
	{
		// process errors based on the error reporting settings
		if (error_reporting() & $errno)
		{
			try
			{
				// bit of a hack to consolidate errors to exceptions
				$message = $this->_errorNumberString($errno).': '.$errstr;
				throw new \ErrorException($message,0,$errno,$errfile,$errline);
			}
			catch(\ErrorException $e)
			{
				$this->_handleException($e);
			}
		}
	}
public function _handleError($errno, $errstr, $errfile, $errline, $context=null)
	{
		// process errors based on the error reporting settings
		if (error_reporting() & $errno)
		{
			try
			{
				// bit of a hack to consolidate errors to exceptions
				$message = $this->_errorNumberString($errno).': '.$errstr;
				throw new \ErrorException($message,0,$errno,$errfile,$errline);
			}
			catch(\ErrorException $e)
			{
				$this->_handleException($e);
			}
		}
	}
public function _handleError ( $ errno , $ errstr , $ errfile , $ errline , $ context = null ) { // process errors based on the error reporting settings if ( error_reporting ( ) & $ errno ) { try { // bit of a hack to consolidate errors to exceptions $ message = $ this -> _errorNumberString ( $ errno ) . ': ' . $ errstr ; throw new \ ErrorException ( $ message , 0 , $ errno , $ errfile , $ errline ) ; } catch ( \ ErrorException $ e ) { $ this -> _handleException ( $ e ) ; } } }
PHP error handler interface
@see set_error_handler
PHP error handler interface