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