protected static function errorProcess(Error $error)
{
static::logError($error);
$useErrorController = false;
if ($error->isException()) {
$useErrorController = true;
} else {
switch ($error->type()) {
case E_WARNING:
case E_NOTICE:
case E_CORE_WARNING:
case E_COMPILE_WARNING:
case E_USER_WARNING:
case E_USER_NOTICE:
case E_STRICT:
case E_DEPRECATED:
case E_USER_DEPRECATED:
case E_ALL:
break;
default:
$useErrorController = true;
}
}
if (!$useErrorController) {
return;
}
}