Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function asThrowable(): Throwable |
||
26 | { |
||
27 | try { |
||
28 | /** @var Throwable $throwable */ |
||
29 | $throwable = new $this->class($this->message."\n\n".$this->trace); |
||
30 | } catch (Throwable $exception) { |
||
31 | $throwable = new ParallelException($this->message, $this->class, $this->trace); |
||
32 | } |
||
33 | |||
34 | return $throwable; |
||
35 | } |
||
36 | } |
||
37 |