mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-05 01:54:36 -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 Sentry\State\Scope;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Http\Response;
|
|
||||||
use Sentry\Laravel\Integration;
|
use Sentry\Laravel\Integration;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
use GuzzleHttp\Exception\ConnectException;
|
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\NotFoundHttpException;
|
||||||
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
|
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
|
||||||
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNotFoundException;
|
||||||
|
use InvalidArgumentException;
|
||||||
|
|
||||||
class Handler extends ExceptionHandler
|
class Handler extends ExceptionHandler
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* A list of the exception types that are not reported.
|
* A list of the exception types that are not reported.
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array<int, class-string<Throwable>>
|
||||||
*/
|
*/
|
||||||
protected $dontReport = [
|
protected $dontReport = [
|
||||||
// PDOException::class,
|
// PDOException::class,
|
||||||
// MaxAttemptsExceededException::class,
|
MaxAttemptsExceededException::class,
|
||||||
// CommandNotFoundException::class,
|
CommandNotFoundException::class,
|
||||||
// ValidationException::class,
|
ValidationException::class,
|
||||||
// ModelNotFoundException::class,
|
// ModelNotFoundException::class,
|
||||||
// NotFoundHttpException::class,
|
NotFoundHttpException::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $selfHostDontReport = [
|
protected $selfHostDontReport = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user