| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function __construct( |
||
| 40 | string $message, |
||
| 41 | string $path, |
||
| 42 | array $params = [], |
||
| 43 | int $code = 0, |
||
| 44 | ?Exception $previous = null |
||
| 45 | ) { |
||
| 46 | parent::__construct($message, $code, $previous); |
||
| 47 | $this->path = $path; |
||
| 48 | $this->params = $params; |
||
| 49 | if ($previous instanceof RequestException) { |
||
| 50 | $this->response = $previous->getResponse(); |
||
| 51 | $this->request = $previous->getRequest(); |
||
| 52 | } |
||
| 75 |