Handling I/O errors from a rest client's methods #48267
-
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 Any tips on where I should be looking at? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
/cc @cescoffier (rest-client), @geoand (rest-client) |
Beta Was this translation helpful? Give feedback.
-
If the error is encountered while sending the payload, you'll get a |
Beta Was this translation helpful? Give feedback.
If the error is encountered while sending the payload, you'll get a
ProcessingException
that wraps theIOException
. See this