Completed
Push — svgpagetools ( d7814e...a24eaf )
by Andreas
05:51
created

FatalException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

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