Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function __construct(Throwable $exception, iterable $context = []) |
||
36 | { |
||
37 | $this->message = $exception->getMessage(); |
||
38 | $this->exception = $exception; |
||
39 | $this->context = $context; |
||
40 | $this->logLevel = LogLevel::ALERT; |
||
41 | $this->label = Trackable::LABEL_EXCEPTION; |
||
42 | $this->context = array_merge($context, [ |
||
|
|||
43 | 'label' => $this->label, |
||
44 | 'exception' => get_class($this->exception), |
||
45 | 'file' => "{$exception->getFile()} ({$exception->getLine()})", |
||
46 | 'trace' => $this->exception->getTraceAsString() |
||
47 | ]); |
||
60 |