function onErrorShutDown()
{
$error = error_get_last();
if (!isset($error['type'])) {
return;
}
switch ($error['type']) {
case E_ERROR:
case E_PARSE:
case E_USER_ERROR:
case E_CORE_ERROR:
case E_COMPILE_ERROR:
break;
default:
return;
}
$this->errorResponse($error);
}