View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.cxf.testmodels;
8   
9   import javax.xml.namespace.QName;
10  
11  import org.apache.cxf.frontend.FaultInfoException;
12  
13  public class CxfEnabledFaultMessage extends FaultInfoException
14  {
15      CustomFault faultInfo;
16  
17      public CxfEnabledFaultMessage(String message, CustomFault fault)
18      {
19          super(message);
20          this.faultInfo = fault;
21      }
22  
23      public CxfEnabledFaultMessage(String message, Throwable t, CustomFault fault)
24      {
25          super(message, t);
26          this.faultInfo = fault;
27      }
28  
29      public CustomFault getFaultInfo()
30      {
31          return faultInfo;
32      }
33  
34      public static QName getFaultName()
35      {
36          return new QName("http://org.mule.module.cxf.testmodels/CxfTestService/",
37              "CxfEnabledFaultMessage");
38      }
39  
40  }