ExceptionHandler.php 935 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace Illuminate\Contracts\Debug;
  3. use Exception;
  4. interface ExceptionHandler
  5. {
  6. /**
  7. * Report or log an exception.
  8. *
  9. * @param \Exception $e
  10. * @return void
  11. */
  12. public function report(Exception $e);
  13. /**
  14. * Determine if the exception should be reported.
  15. *
  16. * @param \Exception $e
  17. * @return bool
  18. */
  19. public function shouldReport(Exception $e);
  20. /**
  21. * Render an exception into an HTTP response.
  22. *
  23. * @param \Illuminate\Http\Request $request
  24. * @param \Exception $e
  25. * @return \Symfony\Component\HttpFoundation\Response
  26. */
  27. public function render($request, Exception $e);
  28. /**
  29. * Render an exception to the console.
  30. *
  31. * @param \Symfony\Component\Console\Output\OutputInterface $output
  32. * @param \Exception $e
  33. * @return void
  34. */
  35. public function renderForConsole($output, Exception $e);
  36. }