| 1 | <?php |
||
| 13 | class ErrorResponse extends AbstractApiResponse |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \Exception |
||
| 17 | */ |
||
| 18 | private $exception; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $message; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ErrorResponse constructor. |
||
| 27 | * @param ResponseInterface $response |
||
| 28 | * @param ClientRequestInterface $request |
||
| 29 | * @param \Exception $exception |
||
| 30 | * @param Context $context |
||
| 31 | */ |
||
| 32 | 33 | public function __construct( |
|
| 41 | |||
| 42 | 28 | public function isError() |
|
| 43 | { |
||
| 44 | 28 | return true; |
|
| 45 | } |
||
| 46 | |||
| 47 | public function getMessage() |
||
| 54 | } |
||
| 55 |