| 1 | <?php |
||
| 10 | class ApiException extends \Exception implements DomainException |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Error |
||
| 14 | */ |
||
| 15 | protected $error; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var ResponseInterface |
||
| 19 | */ |
||
| 20 | protected $response; |
||
| 21 | |||
| 22 | 357 | public function __construct(ResponseInterface $response, Error $error = null) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return Error|null |
||
| 32 | */ |
||
| 33 | public function getError() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return ResponseInterface |
||
| 40 | */ |
||
| 41 | public function getResponse() |
||
| 45 | } |
||
| 46 |