1   /*
2    * $Id: XFireEnabledFaultMessage.java 9521 2007-10-31 16:17:25Z holger $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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.providers.soap.xfire.testmodels;
12  
13  import javax.xml.namespace.QName;
14  
15  import org.codehaus.xfire.fault.FaultInfoException;
16  
17  public class XFireEnabledFaultMessage extends FaultInfoException
18  {
19      private static final long serialVersionUID = -6379864543048621063L;
20  
21      protected CustomFault faultInfo;
22  
23      public XFireEnabledFaultMessage(String message, CustomFault fault)
24      {
25          super(message);
26          this.faultInfo = fault;
27      }
28  
29      public XFireEnabledFaultMessage(String message, Throwable t, CustomFault fault)
30      {
31          super(message, t);
32          this.faultInfo = fault;
33      }
34  
35      public CustomFault getFaultInfo()
36      {
37          return faultInfo;
38      }
39  
40      public static QName getFaultName()
41      {
42          return new QName("http://org.mule.providers.soap.xfire.testmodels/XFireTestService/", "XFireEnabledFaultMessage");
43      }
44  
45  }