|
...
|
...
|
@@ -7,10 +7,36 @@ use Throwable; |
|
|
|
|
|
|
|
class Handler extends BaseHandler
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param Throwable $e
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
* @throws Throwable
|
|
|
|
*/
|
|
|
|
public function report(Throwable $e)
|
|
|
|
{
|
|
|
|
parent::report($e); // TODO: Change the autogenerated stub
|
|
|
|
$this->beforeReport($e);
|
|
|
|
|
|
|
|
$this->afterReport($e);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @throws Throwable
|
|
|
|
*/
|
|
|
|
private function beforeReport(Throwable $e)
|
|
|
|
{
|
|
|
|
parent::report($e);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Throwable $e
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
private function afterReport(Throwable $e)
|
|
|
|
{
|
|
|
|
if ($this->shouldReport($e)) {
|
|
|
|
app('exception.push')->report($e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|