org.apache.axis2
Class AxisFault
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.rmi.RemoteException
org.apache.axis2.AxisFault
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DeploymentException, PhaseException
- public class AxisFault
- extends java.rmi.RemoteException
An exception which maps cleanly to a SOAP fault.
This is a base class for exceptions which are mapped to faults.
SOAP faults contain
- A fault string
- A fault code
- A fault actor
- Fault details; an xml tree of fault specific stuff
- See Also:
- Serialized Form
Fields inherited from class java.rmi.RemoteException |
detail |
Constructor Summary |
AxisFault(java.lang.String arg0)
|
AxisFault(java.lang.String messageText,
java.lang.String faultCode)
|
AxisFault(java.lang.String messageText,
java.lang.String faultCode,
java.lang.Throwable cause)
|
AxisFault(java.lang.String arg0,
java.lang.Throwable arg1)
|
AxisFault(java.lang.Throwable arg1)
|
Methods inherited from class java.rmi.RemoteException |
getCause, getMessage |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AxisFault
public AxisFault(java.lang.Throwable arg1)
AxisFault
public AxisFault(java.lang.String arg0)
- Parameters:
arg0
-
AxisFault
public AxisFault(java.lang.String arg0,
java.lang.Throwable arg1)
- Parameters:
arg0
- arg1
-
AxisFault
public AxisFault(java.lang.String messageText,
java.lang.String faultCode,
java.lang.Throwable cause)
- Parameters:
messageText
- - this will appear as the Text in the Reason information item of SOAP FaultfaultCode
- - this will appear as the Value in the Code information item of SOAP Faultcause
- - this will appear under the Detail information item of SOAP Fault
AxisFault
public AxisFault(java.lang.String messageText,
java.lang.String faultCode)
- Parameters:
messageText
- - this will appear as the Text in the Reason information item of SOAP FaultfaultCode
- - this will appear as the Value in the Code information item of SOAP Fault
makeFault
public static AxisFault makeFault(java.lang.Exception e)
- Make an AxisFault based on a passed Exception. If the Exception is
already an AxisFault, simply use that. Otherwise, wrap it in an
AxisFault. If the Exception is an InvocationTargetException (which
already wraps another Exception), get the wrapped Exception out from
there and use that instead of the passed one.
- Parameters:
e
- the Exception
to build a fault for
- Returns:
- an
AxisFault
representing e
getFaultCode
public java.lang.String getFaultCode()
setFaultCode
public void setFaultCode(java.lang.String soapFaultCode)