Package org.glassfish.jersey.client.spi
Interface PostInvocationInterceptor.ExceptionContext
- Enclosing interface:
- PostInvocationInterceptor
public static interface PostInvocationInterceptor.ExceptionContext
The context providing information when the
Throwable
(typically, the RuntimeException
) is caught.-
Method Summary
Modifier and TypeMethodDescriptionIf theClientResponseContext
has been available at the time of theThrowable
occurrence, such as when thePostInvocationInterceptor
is processed, it will be available.Get the mutableDeque
of unhandledThrowables
occurred during the request (including previousPostInvocationInterceptor
processing).void
Resolve theThrowables
with a providedResponse
.
-
Method Details
-
getResponseContext
Optional<ClientResponseContext> getResponseContext()If theClientResponseContext
has been available at the time of theThrowable
occurrence, such as when thePostInvocationInterceptor
is processed, it will be available.- Returns:
ClientResponseContext
if available.
-
getThrowables
Get the mutableDeque
of unhandledThrowables
occurred during the request (including previousPostInvocationInterceptor
processing).- Returns:
- Unhandled
Throwables
occurred during the request.
-
resolve
Resolve theThrowables
with a providedResponse
. The Throwables in theExceptionContext
will be cleared.
-