| @@ 101-103 (lines=3) @@ | ||
| 98 | /* @var $prevEx \GuzzleHttp\Exception\ClientException */ |
|
| 99 | $prevEx = $ex->getPrevious(); |
|
| 100 | ||
| 101 | if ($prevEx->hasResponse() === true && $prevEx->getResponse()->getStatusCode() === 403) { |
|
| 102 | throw new Exception\InvalidCredentialsException('Your API key "' . $this->apiKey . '" is not valid for ' . $this->getName(), null, $ex); |
|
| 103 | } |
|
| 104 | ||
| 105 | throw $ex; |
|
| 106 | } |
|
| @@ 118-120 (lines=3) @@ | ||
| 115 | /* @var $prevEx \GuzzleHttp\Exception\ClientException */ |
|
| 116 | $prevEx = $ex->getPrevious(); |
|
| 117 | ||
| 118 | if ($prevEx->hasResponse() === true && $prevEx->getResponse()->getStatusCode() === 403) { |
|
| 119 | throw new Exception\InvalidCredentialsException('Your API userId "' . $this->apiUserId . '" and key "' . $this->apiKey . '" is not valid for ' . $this->getName(), null, $ex); |
|
| 120 | } |
|
| 121 | ||
| 122 | throw $ex; |
|
| 123 | } |
|