public static interface PostInvocationInterceptor.ExceptionContext
Throwable
(typically, the RuntimeException
) is caught.Modifier and Type | Method and Description |
---|---|
Optional<javax.ws.rs.client.ClientResponseContext> |
getResponseContext()
If the
ClientResponseContext has been available at the time of the Throwable occurrence,
such as when the PostInvocationInterceptor is processed, it will be available. |
Deque<Throwable> |
getThrowables()
Get the mutable
Deque of unhandled Throwables occurred during the request (including previous
PostInvocationInterceptor processing). |
void |
resolve(javax.ws.rs.core.Response response)
Resolve the
Throwables with a provided Response . |
Optional<javax.ws.rs.client.ClientResponseContext> getResponseContext()
ClientResponseContext
has been available at the time of the Throwable
occurrence,
such as when the PostInvocationInterceptor
is processed, it will be available.ClientResponseContext
if available.Deque<Throwable> getThrowables()
Deque
of unhandled Throwables
occurred during the request (including previous
PostInvocationInterceptor
processing).Throwables
occurred during the request.void resolve(javax.ws.rs.core.Response response)
Throwables
with a provided Response
. The Throwables in the ExceptionContext
will be cleared.response
- the provided Response
to be passed to a next PostInvocationInterceptor
or the
Client
.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.