Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Exception extends \Exception |
||
6 | { |
||
7 | public function __construct(string $message = "", int $code = 0, \Throwable $previous = null) |
||
8 | { |
||
9 | parent::__construct($message, $code, $previous); |
||
10 | |||
11 | $this->errorLog( |
||
12 | "Uncaught Error: " . $this->getMessage() . " in " . $this->getFile() . ":" . $this->getLine() . "\n" |
||
13 | . "Stack trace:\n" . $this->getTraceAsString() . "\n" |
||
14 | . " thrown in " . $this->getFile() . " on line " . $this->getLine() |
||
15 | ); |
||
16 | } |
||
17 | |||
18 | public function errorLog(string $error) |
||
22 | } |
||
23 | } |