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