We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1504a1 + aa8d79d commit 3a84b37Copy full SHA for 3a84b37
core/Client.php
@@ -390,6 +390,17 @@ private function parseExceptionResponse($e)
390
);
391
}
392
393
+ if (isset($doc) &&
394
+ isset($doc->Errors) &&
395
+ isset($doc->Errors->Description) &&
396
+ isset($doc->Errors->Code))
397
+ {
398
+ throw new ResponseException(
399
+ (string) $doc->Errors->Description,
400
+ (int) $doc->Errors->Code
401
+ );
402
+ }
403
+
404
throw new ResponseException($e->getMessage(), $e->getResponse()->getStatusCode());
405
406
0 commit comments