Skip to content

Commit

Permalink
hyperledger-web3j#2120 - catch all exceptions during response parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Shohov committed Dec 16, 2024
1 parent 6e553a5 commit c703e6d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private void processRequestReply(String replyStr, JsonNode replyJson) throws IOE
}

sendReplyToListener(request, reply);
} catch (IllegalArgumentException e) {
} catch (Exception e) {
sendExceptionToListener(replyStr, request, e);
}
}
Expand All @@ -322,7 +322,7 @@ private void processBatchRequestReply(String replyStr, ArrayNode replyJson) thro
}

sendReplyToListener(webSocketRequests, new BatchResponse(requests, responses));
} catch (IllegalArgumentException e) {
} catch (Exception e) {
sendExceptionToListener(replyStr, webSocketRequests, e);
}
}
Expand Down Expand Up @@ -375,7 +375,7 @@ private void sendReplyToListener(WebSocketRequest request, Object reply) {
}

private void sendExceptionToListener(
String replyStr, WebSocketRequest request, IllegalArgumentException e) {
String replyStr, WebSocketRequest request, Exception e) {
request.getOnReply()
.completeExceptionally(
new IOException(
Expand Down

0 comments on commit c703e6d

Please sign in to comment.