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 theClientResponseContexthas been available at the time of theThrowableoccurrence, such as when thePostInvocationInterceptoris processed, it will be available.Get the mutableDequeof unhandledThrowablesoccurred during the request (including previousPostInvocationInterceptorprocessing).voidResolve theThrowableswith a providedResponse.
-
Method Details
-
getResponseContext
Optional<ClientResponseContext> getResponseContext()If theClientResponseContexthas been available at the time of theThrowableoccurrence, such as when thePostInvocationInterceptoris processed, it will be available.- Returns:
ClientResponseContextif available.
-
getThrowables
Get the mutableDequeof unhandledThrowablesoccurred during the request (including previousPostInvocationInterceptorprocessing).- Returns:
- Unhandled
Throwablesoccurred during the request.
-
resolve
Resolve theThrowableswith a providedResponse. The Throwables in theExceptionContextwill be cleared.
-