| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function getDetails() { |
||
| 27 | $details = ''; |
||
| 28 | $exception = $this->exception; |
||
| 29 | |||
| 30 | while ($exception) { |
||
| 31 | $details .= $details ? 'Caused by: ' : 'Exception: '; |
||
| 32 | $details .= $this->exception->getMessage() . "\n" . |
||
| 33 | "In " . $this->exception->getFile() . '(' . $this->exception->getLine() . ")\n" . |
||
| 34 | $this->exception->getTraceAsString() . "\n\n"; |
||
| 35 | |||
| 36 | $exception = $exception->getPrevious(); |
||
| 37 | } |
||
| 38 | return $details; |
||
| 39 | } |
||
| 40 | } |