Package org.jboss.resteasy.client.core
Interface ClientErrorInterceptor
-
public interface ClientErrorInterceptorClientErrorInterceptorprovides a hook into the proxyClientResponserequest lifecycle. If a Client Proxy method is called, resulting in a client exception, and the proxy return type is notResponseorClientResponse, registered interceptors will be given a chance to process the response manually, or throw a new exception. If all interceptors successfully return, RestEasy will re-throw the original encountered exception.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(ClientResponse<?> response)Attempt to handle the currentClientResponse.
-
-
-
Method Detail
-
handle
void handle(ClientResponse<?> response) throws java.lang.RuntimeException
Attempt to handle the currentClientResponse. If this method returns successfully, the next registeredClientErrorInterceptorwill attempt to handle theClientResponse. If this method throws an exception, no further interceptors will be processed.- Throws:
java.lang.RuntimeException- RestEasy will abort request processing if any exception is thrown from this method.
-
-