1 | <?php |
||
20 | class ApiException extends Exception |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @internal |
||
25 | * @param RequestException $e |
||
26 | * @return AccessDeniedException|ApiException|AuthenticationException|ConflictingStateException| |
||
27 | * MethodNotAllowedException|NotFoundException|RateLimitExceededException|UnsupportedAcceptHeaderException| |
||
28 | * UnsupportedContentTypeException|ValidationException |
||
29 | */ |
||
30 | public static function create(RequestException $e) { |
||
58 | |||
59 | /** |
||
60 | * @var RequestException |
||
61 | * @internal |
||
62 | */ |
||
63 | private $exception; |
||
64 | |||
65 | /** |
||
66 | * Returns the Request Exception |
||
67 | * |
||
68 | * A Guzzle Request Exception is returned |
||
69 | * |
||
70 | * @return RequestException |
||
71 | */ |
||
72 | public function getRequestException() |
||
76 | |||
77 | /** |
||
78 | * Exception constructor |
||
79 | * |
||
80 | * Constructs a new exception. |
||
81 | * |
||
82 | * @param RequestException $e |
||
83 | * @internal |
||
84 | */ |
||
85 | public function __construct(RequestException $e) |
||
90 | } |
||
91 |