| 1 | <?php | ||
| 12 | class ApiException extends RuntimeException | ||
| 13 | { | ||
| 14 | /** | ||
| 15 | * @var ErrorResponse | ||
| 16 | */ | ||
| 17 | protected $errorResponse; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * ApiException constructor. | ||
| 21 | * | ||
| 22 | * @param ErrorResponse $errorResponse | ||
| 23 | * @param Exception|string $message | ||
| 24 | * @param int $code | ||
| 25 | * @param Exception|null $previous | ||
| 26 | */ | ||
| 27 | public function __construct(ErrorResponse $errorResponse, $message = "", $code = 0, Exception $previous = null) | ||
| 39 | |||
| 40 | /** | ||
| 41 | * @return ErrorResponse | ||
| 42 | */ | ||
| 43 | public function getErrorResponse() | ||
| 47 | } | ||
| 48 |