FatalException.php 703 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace dokuwiki\Action\Exception;
  3. /**
  4. * Class FatalException
  5. *
  6. * A fatal exception during handling the action
  7. *
  8. * Will abort all handling and display some info to the user. The HTTP status code
  9. * can be defined.
  10. *
  11. * @package dokuwiki\Action\Exception
  12. */
  13. class FatalException extends \Exception {
  14. /**
  15. * FatalException constructor.
  16. *
  17. * @param string $message the message to send
  18. * @param int $status the HTTP status to send
  19. * @param null|\Exception $previous previous exception
  20. */
  21. public function __construct($message = 'A fatal error occured', $status = 500, $previous = null) {
  22. parent::__construct($message, $status, $previous);
  23. }
  24. }