1 | <?php |
||
12 | class ApiException extends \RuntimeException |
||
13 | { |
||
14 | /** |
||
15 | * The API error response. |
||
16 | * |
||
17 | * @var ApiErrorResponse |
||
18 | */ |
||
19 | private $apiErrorResponse; |
||
20 | |||
21 | /** |
||
22 | * @param ApiErrorResponse $apiErrorResponse The API error response. |
||
23 | * @param \Exception|null $previous Previous exception. |
||
24 | */ |
||
25 | public function __construct(ApiErrorResponse $apiErrorResponse, \Exception $previous = null) |
||
31 | |||
32 | /** |
||
33 | * Get the API error response. |
||
34 | * |
||
35 | * @return ApiErrorResponse |
||
36 | */ |
||
37 | public function apiErrorResponse(): ApiErrorResponse |
||
41 | } |
||
42 |