You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
707 B

  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. /**
  16. * FatalException constructor.
  17. *
  18. * @param string $message the message to send
  19. * @param int $status the HTTP status to send
  20. * @param null|\Exception $previous previous exception
  21. */
  22. public function __construct($message = 'A fatal error occured', $status = 500, $previous = null)
  23. {
  24. parent::__construct($message, $status, $previous);
  25. }
  26. }