Ergo\Error\ErrorProxy::_handleError PHP Method

_handleError() public method

PHP error handler interface
See also: set_error_handler
public _handleError ( $errno, $errstr, $errfile, $errline, $context = null )
    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);
            }
        }
    }