Handling I/O errors from a rest client's methods #48267
Unanswered
pavelrappo
asked this question in
Q&A
Replies: 2 comments 2 replies
-
/cc @cescoffier (rest-client), @geoand (rest-client) |
Beta Was this translation helpful? Give feedback.
0 replies
-
If the error is encountered while sending the payload, you'll get a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been reading USING THE REST CLIENT and Rest Client for MicroProfile, but couldn't quickly find the answer to the following question. How do I know if a method of a rest client interface encounters an I/O error while sending a request?
There's one example in the specification that kind of suggests that I should declare
IOException
on the method, but I'm not sure. Also, various LLMs suggest that an instance of uncheckedjakarta.ws.rs.ProcessingException
is thrown withIOException
as a cause somewhere in the exception chain. But for that in particular, I couldn't find any evidence in the specification.Any tips on where I should be looking at?
Beta Was this translation helpful? Give feedback.
All reactions