123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace App\Exceptions;
- use Exception;
- use Illuminate\Auth\Access\AuthorizationException;
- use Illuminate\Database\Eloquent\ModelNotFoundException;
- use Illuminate\Http\Exceptions\HttpResponseException;
- use Illuminate\Http\JsonResponse;
- use Illuminate\Http\Request;
- use Illuminate\Http\Response;
- use Illuminate\Validation\ValidationException;
- use Jiannei\Response\Laravel\Support\Traits\ExceptionTrait;
- use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
- use Symfony\Component\HttpKernel\Exception\HttpException;
- use Throwable;
- class Handler extends ExceptionHandler
- {
- use ExceptionTrait;
-
- protected $dontReport = [
- AuthorizationException::class,
- HttpException::class,
- ModelNotFoundException::class,
- ValidationException::class,
- HttpResponseException::class,
- ];
-
- public function report(Throwable $exception)
- {
- parent::report($exception);
- }
-
- public function render($request, Throwable $exception)
- {
- return parent::render($request, $exception);
- }
- }
|