View Javadoc

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