|
|
|
@ -73,22 +73,22 @@ class ErrorException extends \ErrorException
|
|
|
|
|
*/ |
|
|
|
|
public function getName() |
|
|
|
|
{ |
|
|
|
|
$names = [ |
|
|
|
|
E_ERROR => 'PHP Fatal Error', |
|
|
|
|
E_WARNING => 'PHP Warning', |
|
|
|
|
E_PARSE => 'PHP Parse Error', |
|
|
|
|
E_NOTICE => 'PHP Notice', |
|
|
|
|
E_CORE_ERROR => 'PHP Core Error', |
|
|
|
|
E_CORE_WARNING => 'PHP Core Warning', |
|
|
|
|
static $names = [ |
|
|
|
|
E_COMPILE_ERROR => 'PHP Compile Error', |
|
|
|
|
E_COMPILE_WARNING => 'PHP Compile Warning', |
|
|
|
|
E_USER_ERROR => 'PHP User Error', |
|
|
|
|
E_USER_WARNING => 'PHP User Warning', |
|
|
|
|
E_USER_NOTICE => 'PHP User Notice', |
|
|
|
|
E_STRICT => 'PHP Strict Warning', |
|
|
|
|
E_RECOVERABLE_ERROR => 'PHP Recoverable Error', |
|
|
|
|
E_CORE_ERROR => 'PHP Core Error', |
|
|
|
|
E_CORE_WARNING => 'PHP Core Warning', |
|
|
|
|
E_DEPRECATED => 'PHP Deprecated Warning', |
|
|
|
|
E_ERROR => 'PHP Fatal Error', |
|
|
|
|
E_NOTICE => 'PHP Notice', |
|
|
|
|
E_PARSE => 'PHP Parse Error', |
|
|
|
|
E_RECOVERABLE_ERROR => 'PHP Recoverable Error', |
|
|
|
|
E_STRICT => 'PHP Strict Warning', |
|
|
|
|
E_USER_DEPRECATED => 'PHP User Deprecated Warning', |
|
|
|
|
E_USER_ERROR => 'PHP User Error', |
|
|
|
|
E_USER_NOTICE => 'PHP User Notice', |
|
|
|
|
E_USER_WARNING => 'PHP User Warning', |
|
|
|
|
E_WARNING => 'PHP Warning', |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
return isset($names[$this->getCode()]) ? $names[$this->getCode()] : 'Error'; |
|
|
|
|