cgl.narada.wsinfra.exception
Class WsFaultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
WsFaultException(QName faultCodeQName, String reason)
           
WsFaultException(QName faultCodeQName, String reason, EndpointReferenceType faultTo)
           
WsFaultException(QName faultCodeQName, String reason, XmlObject detailObject, EndpointReferenceType faultTo)
           
 
Method Summary
 XmlObject getAddSoapHeaderElement()
           
 XmlObject getDetailObject()
           
 String getFaultActor()
           
 QName getFaultCodeQName()
           
 EndpointReferenceType getFaultTo()
           
 String getReason()
           
 RelatesToDocument getRelatesTo()
           
 String getStackTraceAsString()
          Gets the stack trace associated with the exception
 boolean hasAddSoapHeaderElement()
           
 boolean hasDetailObject()
           
 boolean hasFaultActor()
           
 boolean hasFaultTo()
           
 boolean hasRelatesTo()
           
 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.
 void setDetailObject(XmlObject detailObject)
           
 void setFaultActor(String faultActor)
           
 void setFaultTo(EndpointReferenceType faultTo)
           
 void setRelatesTo(RelatesToDocument relatesTo)
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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