org.apache.muse.ws.addressing.soap
Class SoapFault

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.muse.ws.addressing.soap.SoapFault
All Implemented Interfaces:
Serializable, XmlSerializable
Direct Known Subclasses:
BaseFault

public class SoapFault
extends Exception
implements XmlSerializable

This class represents a the SOAP fault type defined in SOAP 1.2.

Author:
Dan Jemiolo (danj)
See Also:
Serialized Form

Constructor Summary
SoapFault(Element xml)
           
SoapFault(String message)
           
SoapFault(String message, Throwable cause)
           
SoapFault(Throwable cause)
           
 
Method Summary
 QName getCode()
           
 Element getDetail()
           
 String getMessage()
           
 String getNodeURI()
           
 String getReason()
           
 String getRoleURI()
           
 QName getSubCode()
           
 void setCode(QName code)
           
 void setDetail(Element detail)
           
 void setNodeURI(String nodeURI)
           
 void setReason(String reason)
           
 void setRoleURI(String roleURI)
           
 void setSubCode(QName subCode)
           
 Element toXML()
          Converts this object into an XML representation, as defined by its related schema or specification.
 Element toXML(Document doc)
          Converts this object into an XML representation, as defined by its related schema or specification.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

SoapFault

public SoapFault(Element xml)

SoapFault

public SoapFault(String message)

SoapFault

public SoapFault(String message,
                 Throwable cause)

SoapFault

public SoapFault(Throwable cause)
Method Detail

getCode

public QName getCode()

setCode

public void setCode(QName code)

getDetail

public Element getDetail()

setDetail

public void setDetail(Element detail)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getNodeURI

public String getNodeURI()

setNodeURI

public void setNodeURI(String nodeURI)

getReason

public String getReason()

setReason

public void setReason(String reason)

getRoleURI

public String getRoleURI()

setRoleURI

public void setRoleURI(String roleURI)

getSubCode

public QName getSubCode()

setSubCode

public void setSubCode(QName subCode)

toXML

public Element toXML()
Description copied from interface: XmlSerializable
Converts this object into an XML representation, as defined by its related schema or specification. The format of the XML is dependent on the concrete type.

Specified by:
toXML in interface XmlSerializable
Returns:
An XML representation of this object.

toXML

public Element toXML(Document doc)
Description copied from interface: XmlSerializable
Converts this object into an XML representation, as defined by its related schema or specification. The format of the XML is dependent on the concrete type.

Specified by:
toXML in interface XmlSerializable
Parameters:
doc - The DOM Document that will be used to create all of the nodes in the resulting XML fragment.
Returns:
An XML representation of this object.


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.