mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
22 lines
348 B
PHP
22 lines
348 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use Exception;
|
|
use Illuminate\Foundation\Exceptions\Handler;
|
|
|
|
|
|
class ExceptionHandler extends Handler
|
|
{
|
|
|
|
public function report(Exception $e)
|
|
{
|
|
|
|
if (app()->bound('sentry') && $this->shouldReport($e)) {
|
|
app('sentry')->captureException($e);
|
|
}
|
|
|
|
parent::report($e);
|
|
}
|
|
}
|