|
|
@ -77,8 +77,10 @@ class ErrorHandler extends ApplicationComponent |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function handleError($code, $message, $file, $line) |
|
|
|
public function handleError($code, $message, $file, $line) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if(error_reporting()!==0) { |
|
|
|
throw new \ErrorException($message, 0, $code, $file, $line); |
|
|
|
throw new \ErrorException($message, 0, $code, $file, $line); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @param \Exception $exception |
|
|
|
* @param \Exception $exception |
|
|
|