public interface ClientErrorInterceptor
ClientErrorInterceptorprovides a hook into the proxy
ClientResponserequest lifecycle. If a Client Proxy method is called, resulting in a client exception, and the proxy return type is not
ClientResponse, 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.
void handle(ClientResponse<?> response) throws RuntimeException
ClientResponse. If this method returns successfully, the next registered
ClientErrorInterceptorwill attempt to handle the
ClientResponse. If this method throws an exception, no further interceptors will be processed.
RuntimeException- RestEasy will abort request processing if any exception is thrown from this method.
Copyright © 2018 JBoss by Red Hat. All rights reserved.