@@ 167-169 (lines=3) @@ | ||
164 | throw new InvalidArgumentException('$response of doRegister() method only accepts object.'); |
|
165 | } |
|
166 | ||
167 | if (property_exists($response, 'errorCode') && $response->errorCode !== 0) { |
|
168 | throw new Error( |
|
169 | 'User-agent returned error. Error code: ' . $response->errorCode, |
|
170 | ERR_BAD_UA_RETURNING |
|
171 | ); |
|
172 | } |
|
@@ 299-301 (lines=3) @@ | ||
296 | throw new InvalidArgumentException('$response of doAuthenticate() method only accepts object.'); |
|
297 | } |
|
298 | ||
299 | if (property_exists($response, 'errorCode') && $response->errorCode !== 0) { |
|
300 | throw new Error( |
|
301 | 'User-agent returned error. Error code: ' . $response->errorCode, |
|
302 | ERR_BAD_UA_RETURNING |
|
303 | ); |
|
304 | } |