title: Propagate exception from CXF interceptor to exception mapper
body: <p>I've a flow where on CXF client I've jaxrs-in-interceptor, provider and exception mapper. In my case I'm catching bad response from client through in-interceptor and then I would like abort the cxf bus chain and throw a fault. Unfortunately I couldn't do it, cause in every situation exception thrown from interceptor is being only logged, but the main error (wrong json format) is propagated to exception mapper. I would like to avoid Exception mapper, but I don't know how. I'm using WebClient to implement interceptors like this:</p>
  
  <pre><code>@Component
  public class MyInterceptor extends AbstractPhaseInterceptor&lt;Message&gt; {
  
      public MyInterceptor() {
          super(POST_STREAM);
      }
  
      @Override
      public void handleMessage(Message message) throws Fault {
          if (message != null) {
                  //message.getExchange().setOneWay(true);
                  //message.getExchange().put(Exception.class, new MyException());
                  //message.getInterceptorChain().abort();
                  //message.setContent(Exception.class, new MyException());
                  //Endpoint ep = message.getExchange().get(Endpoint.class);
                  //message.getInterceptorChain().abort();
                  //if (ep.getInFaultObserver() != null) {
                  //    ep.getInFaultObserver().onMessage(message);
                  //}
                  //throw new WebApplicationException( new MyException());
  
                  //message.setContent(Response.class, response);
                  throw new Fault(new MyException());
              }
          } 
  </code></pre>
  
  <p>I read that I should implement jaxrs-filter cause exceptions thrown by interceptor are not propagated to exception mapper. Is it any way to do that in java thanks to WebClient implementation?</p>
  
  <pre><code>S client = create(url, clazz, list(jsonProvider(), providers));
  WebClient.getConfig(client).getInInterceptors().add(new MyInterceptor());
  </code></pre>
  
  <p>I've also tried to use different phases on interceptor, but it also didn't work.</p>