| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function formatException(Throwable $e): string |
||
| 38 | { |
||
| 39 | $message = $e->getMessage(); |
||
| 40 | |||
| 41 | return $this->encode([ |
||
| 42 | '_error' => $message, |
||
| 43 | '_error_ops' => [ |
||
| 44 | 'class' => get_class($e), |
||
| 45 | // XXX causes Uncaught JsonException: Recursion detected |
||
| 46 | // TODO fix and return the trace back |
||
| 47 | //'trace' => $e->getTrace() |
||
| 48 | ], |
||
| 49 | ]); |
||
| 50 | } |
||
| 51 | |||
| 60 |