Package org.glassfish.jersey.client.spi
Interface PostInvocationInterceptor.ExceptionContext
-
- Enclosing interface:
- PostInvocationInterceptor
public static interface PostInvocationInterceptor.ExceptionContextThe context providing information when theThrowable(typically, theRuntimeException) is caught.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<jakarta.ws.rs.client.ClientResponseContext>getResponseContext()If theClientResponseContexthas been available at the time of theThrowableoccurrence, such as when thePostInvocationInterceptoris processed, it will be available.Deque<Throwable>getThrowables()Get the mutableDequeof unhandledThrowablesoccurred during the request (including previousPostInvocationInterceptorprocessing).voidresolve(jakarta.ws.rs.core.Response response)Resolve theThrowableswith a providedResponse.
-
-
-
Method Detail
-
getResponseContext
Optional<jakarta.ws.rs.client.ClientResponseContext> getResponseContext()
If theClientResponseContexthas been available at the time of theThrowableoccurrence, such as when thePostInvocationInterceptoris processed, it will be available.- Returns:
ClientResponseContextif available.
-
getThrowables
Deque<Throwable> getThrowables()
Get the mutableDequeof unhandledThrowablesoccurred during the request (including previousPostInvocationInterceptorprocessing).- Returns:
- Unhandled
Throwablesoccurred during the request.
-
resolve
void resolve(jakarta.ws.rs.core.Response response)
Resolve theThrowableswith a providedResponse. The Throwables in theExceptionContextwill be cleared.- Parameters:
response- the providedResponseto be passed to a nextPostInvocationInterceptoror theClient.
-
-