We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 925e9d2 commit 292b3aeCopy full SHA for 292b3ae
1 file changed
src/Service/ResponseProcessor/Rest/AbstractRestResponseProcessor.php
@@ -109,7 +109,7 @@ protected function validateResponse(ResponseInterface $response): bool
109
}
110
throw new CifException(message: $exceptionData);
111
} elseif (!empty($body->Error)) {
112
- throw new CifException(message: $body->Error->ErrorDescription, code: $body->Error->ErrorCode);
+ throw new CifException(message: (string) $body->Error->ErrorDescription, code: (int) $body->Error->ErrorCode);
113
} elseif (!empty($body->Array->Item->ErrorMsg)) {
114
// {"Array":{"Item":{"ErrorMsg":"Unknown option GetDeliveryDate.Options='DayTime' specified","ErrorNumber":26}}}
115
$exceptionData = [
0 commit comments