ExceptionHandler.php 759B

1234567891011121314151617181920212223242526272829303132333435
  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. * Render an exception into an HTTP response.
  15. *
  16. * @param \Illuminate\Http\Request $request
  17. * @param \Exception $e
  18. * @return \Symfony\Component\HttpFoundation\Response
  19. */
  20. public function render($request, Exception $e);
  21. /**
  22. * Render an exception to the console.
  23. *
  24. * @param \Symfony\Component\Console\Output\OutputInterface $output
  25. * @param \Exception $e
  26. * @return void
  27. */
  28. public function renderForConsole($output, Exception $e);
  29. }