cgl.narada.wsinfra.exception
Class WsFaultException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cgl.narada.wsinfra.exception.WsFaultException
- All Implemented Interfaces:
- Serializable
public class WsFaultException
- extends Exception
The exception maps a SOAP Fault exception. All the elements that are
part of a Fault can be set through this exception.
- See Also:
- Serialized Form
WsFaultException
public WsFaultException(QName faultCodeQName,
String reason)
WsFaultException
public WsFaultException(QName faultCodeQName,
String reason,
EndpointReferenceType faultTo)
WsFaultException
public WsFaultException(QName faultCodeQName,
String reason,
XmlObject detailObject,
EndpointReferenceType faultTo)
getFaultCodeQName
public QName getFaultCodeQName()
getReason
public String getReason()
getFaultTo
public EndpointReferenceType getFaultTo()
hasFaultTo
public boolean hasFaultTo()
setFaultTo
public void setFaultTo(EndpointReferenceType faultTo)
getDetailObject
public XmlObject getDetailObject()
hasDetailObject
public boolean hasDetailObject()
setDetailObject
public void setDetailObject(XmlObject detailObject)
setFaultActor
public void setFaultActor(String faultActor)
hasFaultActor
public boolean hasFaultActor()
getFaultActor
public String getFaultActor()
setRelatesTo
public void setRelatesTo(RelatesToDocument relatesTo)
hasRelatesTo
public boolean hasRelatesTo()
getRelatesTo
public RelatesToDocument getRelatesTo()
setAddSoapHeaderElement
public void setAddSoapHeaderElement(XmlObject addSoapHeaderElement)
- This is useful especially in the case of WSRM faults, where it is
expected to send the fault:SubCode wrapped within a SequenceFault
element in the header of the SOAP message carrying the FAULT.
hasAddSoapHeaderElement
public boolean hasAddSoapHeaderElement()
getAddSoapHeaderElement
public XmlObject getAddSoapHeaderElement()
toString
public String toString()
- Overrides:
toString in class Throwable
getStackTraceAsString
public String getStackTraceAsString()
- Gets the stack trace associated with the exception
For comments and suggestions please send
e-mail to
The NaradaBrokering Project