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);
}
}
}