Skip to content

Commit

Permalink
replicate ISE
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Parmet <[email protected]>
  • Loading branch information
andrewparmet committed May 30, 2024
1 parent 2aeaa0d commit 6c68261
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public <RequestT, ResponseT, ErrorT> ResponseT performRequest(
if (cause instanceof RuntimeException) {
throw (RuntimeException) cause;
}
throw new IOException(e);
throw new IllegalStateException("unexpected exception type: must be either RuntimeException or IOException", cause);
} catch (InterruptedException e) {
throw new IOException("HttpRequest was interrupted", e);
}
Expand Down

0 comments on commit 6c68261

Please sign in to comment.