mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Shuffle reportable exceptions
This commit is contained in:
parent
3d44778848
commit
b896c2c590
@ -17,7 +17,6 @@ use App\Utils\Ninja;
|
||||
use Sentry\State\Scope;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Sentry\Laravel\Integration;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use GuzzleHttp\Exception\ConnectException;
|
||||
@ -35,21 +34,22 @@ use Symfony\Component\Console\Exception\CommandNotFoundException;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
||||
use InvalidArgumentException;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
/**
|
||||
* A list of the exception types that are not reported.
|
||||
*
|
||||
* @var array
|
||||
* @var array<int, class-string<Throwable>>
|
||||
*/
|
||||
protected $dontReport = [
|
||||
// PDOException::class,
|
||||
// MaxAttemptsExceededException::class,
|
||||
// CommandNotFoundException::class,
|
||||
// ValidationException::class,
|
||||
MaxAttemptsExceededException::class,
|
||||
CommandNotFoundException::class,
|
||||
ValidationException::class,
|
||||
// ModelNotFoundException::class,
|
||||
// NotFoundHttpException::class,
|
||||
NotFoundHttpException::class,
|
||||
];
|
||||
|
||||
protected $selfHostDontReport = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user