| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 74 | public function __toString(): string |
||
| 75 | { |
||
| 76 | $str = 'Exception ' . __CLASS__ . " code {$this->code} with message '{$this->message}' in `{$this->file}`" . PHP_EOL; |
||
| 77 | $str .= 'Details: ' . $this->detail . PHP_EOL; |
||
| 78 | $str .= 'Stack trace:' . PHP_EOL . $this->getTraceAsString() . PHP_EOL; |
||
| 79 | $str .= 'Request-Response:' . PHP_EOL; |
||
| 80 | $str .= '>>>' . \GuzzleHttp\Psr7\Message::toString($this->getRequest()) . PHP_EOL; |
||
| 81 | $str .= '<<<' . \GuzzleHttp\Psr7\Message::toString($this->getResponse()) . PHP_EOL; |
||
| 82 | |||
| 83 | return $str; |
||
| 84 | } |
||
| 85 | } |
||
| 86 |