| 1 | <?php declare(strict_types = 1); |
||
| 7 | class RequestFailed extends Exception |
||
| 8 | { |
||
| 9 | private $extraErrorInfo; |
||
| 10 | |||
| 11 | 3 | public function __construct(string $message, int $code = 0, \Throwable $previous = null, array $extraErrorInfo = []) |
|
| 12 | { |
||
| 13 | 3 | parent::__construct($message, $code, $previous); |
|
| 14 | |||
| 15 | 3 | $this->extraErrorInfo = $extraErrorInfo; |
|
| 16 | } |
||
| 17 | |||
| 18 | 2 | public function hasExtraErrorInfo(): bool |
|
| 22 | |||
| 23 | 1 | public function getExtraErrorInfo(): array |
|
| 27 | } |
||
| 28 |