|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.rmi.RemoteException
org.apache.axis2.AxisFault
An exception which maps cleanly to a SOAP fault. This is a base class for exceptions which are mapped to faults.
SOAP1.2 SOAP1.1 node faultactor reason(0).text faultstring faultcode.value faultcode faultcode.subcode (discarded) detail detail role (discarded), Serialized Form
| Constructor Summary | |
AxisFault(SOAPFault fault)
Make an AxisFault from an incoming SOAPFault |
|
AxisFault(java.lang.String message)
|
|
AxisFault(java.lang.String messageText,
javax.xml.namespace.QName faultCode,
java.lang.Throwable cause)
|
|
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 message,
java.lang.Throwable cause)
|
|
AxisFault(java.lang.Throwable cause)
construct a fault from an exception TODO: handle AxisFaults or SOAPFaultException implementations differently? |
|
| Method Summary | |
void |
addHeader(SOAPHeader header)
Add a header to the list of fault headers |
void |
addReason(java.lang.String text)
Add a reason for the fault in the empty "" language |
void |
addReason(java.lang.String text,
java.lang.String language)
Add a reason for the fault |
OMElement |
getDetail()
Get the current fault detail |
java.lang.String |
getNodeURI()
Get the faulting node uri. |
java.util.ListIterator |
headerIterator()
Iterate over all of the headers |
java.util.List |
headers()
Get at the headers. |
static AxisFault |
makeFault(java.lang.Exception e)
Make an AxisFault based on a passed Exception. |
void |
setDetail(OMElement detail)
Set the entire detail element of the fault |
void |
setNodeURI(java.lang.String nodeURI)
Set the faulting node uri. |
| 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 |
| Constructor Detail |
public AxisFault(java.lang.Throwable cause)
cause - public AxisFault(java.lang.String message)
message -
public AxisFault(java.lang.String message,
java.lang.Throwable cause)
message - cause -
public AxisFault(java.lang.String messageText,
java.lang.String faultCode)
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
public AxisFault(java.lang.String messageText,
java.lang.String faultCode,
java.lang.Throwable cause)
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
public AxisFault(java.lang.String messageText,
javax.xml.namespace.QName faultCode,
java.lang.Throwable cause)
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 Faultpublic AxisFault(SOAPFault fault)
fault - that caused the failure| Method Detail |
public static AxisFault makeFault(java.lang.Exception e)
e - the Exception to build a fault for
AxisFault representing e
public void addReason(java.lang.String text,
java.lang.String language)
text - text messagelanguage - languagepublic void addReason(java.lang.String text)
text - text messagepublic void addHeader(SOAPHeader header)
header - to add.public java.util.ListIterator headerIterator()
public java.util.List headers()
public java.lang.String getNodeURI()
public void setNodeURI(java.lang.String nodeURI)
public OMElement getDetail()
public void setDetail(OMElement detail)
detail -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||