Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function __construct(string $message, string $errorCode = null, \Exception $previous = null) |
||
13 | { |
||
14 | // Since the error code is generally a string, we store it in a local property |
||
15 | // rather than passing it on to the parent constructor, which expects an integer. |
||
16 | $this->errorCode = $errorCode; |
||
17 | |||
18 | parent::__construct($message, 0, $previous); |
||
19 | } |
||
20 | |||
29 |