1
2
3
4
5
6
7 package org.mule.module.cxf;
8
9 import org.mule.api.MuleContext;
10 import org.mule.api.MuleEvent;
11 import org.mule.exception.DefaultServiceExceptionStrategy;
12
13 import org.apache.cxf.interceptor.Fault;
14
15
16
17
18
19
20 public class CxfComponentExceptionStrategy extends DefaultServiceExceptionStrategy
21 {
22 public CxfComponentExceptionStrategy(MuleContext context)
23 {
24 super(context);
25 }
26
27 @Override
28 protected void doHandleException(Exception e, MuleEvent event)
29 {
30 if (e.getCause() instanceof Fault)
31 {
32 super.doHandleException((Exception) e.getCause(), event);
33 }
34 else
35 {
36 super.doHandleException(e, event);
37 }
38 }
39 }