mmodzelewski commented on code in PR #2630:
URL: https://github.com/apache/iggy/pull/2630#discussion_r2740611649
##########
foreign/java/java-sdk/src/main/java/org/apache/iggy/client/blocking/http/InternalHttpClient.java:
##########
@@ -140,8 +204,12 @@ private <T> T handleTypedResponse(ClassicHttpResponse
response, JavaType type) t
private void handleErrorResponse(ClassicHttpResponse response) throws
IOException {
if (!isSuccessful(response.getCode())) {
- var error =
objectMapper.readValue(response.getEntity().getContent(), IggyHttpError.class);
- throw new IggyHttpException(error);
+ var errorNode =
objectMapper.readValue(response.getEntity().getContent(), ObjectNode.class);
Review Comment:
yeah, sounds good, it could use some tests as well
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]