| @@ 141-143 (lines=3) @@ | ||
| 138 | if (isset($content->api_error)) { |
|
| 139 | switch ($content->api_error) { |
|
| 140 | ||
| 141 | case 1: |
|
| 142 | throw new Exception\RequestException('"' . $content->api_error_msg . '" response from "' . $request->getUri() . '". Response is "' . print_r($content, true) . '"'); |
|
| 143 | break; |
|
| 144 | ||
| 145 | case 2: |
|
| 146 | throw new Exception\LimitationExceededException('Exceeded the maximum number of request with API userId "' . $this->apiUserId . '" and key "' . $this->apiKey . '" for ' . $this->getName()); |
|
| @@ 149-151 (lines=3) @@ | ||
| 146 | throw new Exception\LimitationExceededException('Exceeded the maximum number of request with API userId "' . $this->apiUserId . '" and key "' . $this->apiKey . '" for ' . $this->getName()); |
|
| 147 | break; |
|
| 148 | ||
| 149 | default: |
|
| 150 | throw new Exception\RequestException('"' . $content->api_error_msg . '" response from "' . $request->getUri() . '". Response is "' . print_r($content, true) . '"'); |
|
| 151 | break; |
|
| 152 | } |
|
| 153 | } |
|
| 154 | ||