A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

55 linhas
1.3KB

  1. <?php
  2. namespace App\Exceptions;
  3. use Illuminate\Auth\Access\AuthorizationException;
  4. use Illuminate\Database\Eloquent\ModelNotFoundException;
  5. use Illuminate\Validation\ValidationException;
  6. use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
  7. use Symfony\Component\HttpKernel\Exception\HttpException;
  8. use Throwable;
  9. class Handler extends ExceptionHandler
  10. {
  11. /**
  12. * A list of the exception types that should not be reported.
  13. *
  14. * @var array
  15. */
  16. protected $dontReport = [
  17. AuthorizationException::class,
  18. HttpException::class,
  19. ModelNotFoundException::class,
  20. ValidationException::class,
  21. ];
  22. /**
  23. * Report or log an exception.
  24. *
  25. * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
  26. *
  27. * @param \Throwable $exception
  28. * @return void
  29. *
  30. * @throws \Exception
  31. */
  32. public function report(Throwable $exception)
  33. {
  34. parent::report($exception);
  35. }
  36. /**
  37. * Render an exception into an HTTP response.
  38. *
  39. * @param \Illuminate\Http\Request $request
  40. * @param \Throwable $exception
  41. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  42. *
  43. * @throws \Throwable
  44. */
  45. public function render($request, Throwable $exception)
  46. {
  47. return parent::render($request, $exception);
  48. }
  49. }