javax.xml.rpc.soap
Class SOAPFault

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javax.xml.rpc.soap.SOAPFault
All Implemented Interfaces:
java.io.Serializable

public class SOAPFault
extends java.lang.Exception

SOAPFault exception class is used for the mapping of the SOAP faults. If the use attribute in the soap:fault is literal, the soap:fault maps to the SOAPFault exception. This class extends the exception class java.lang.Exception and is declared as a checked exception in the service definition interface.

See Also:
Serialized Form

Constructor Summary
SOAPFault(QName faultcode, java.lang.String faultstring, java.lang.String faultactor, Detail detail)
          Constructor for SOAPFault
 
Method Summary
 Detail getDetail()
          Gets the detail element.
 java.lang.String getFaultActor()
          Gets the faultactor element.
 QName getFaultCode()
          Gets the faultcode element.
 java.lang.String getFaultString()
          Gets the faultstring element.
 void setFaultActor(java.lang.String faultactor)
          Sets the faultactor element.
 void setFaultCode(QName faultcode)
          Sets the faultcode that provides an algorithmic mechanism for the identification of a SOAP fault.
 void setFaultString(java.lang.String faultstring)
          Sets the faultstring element.The getMessage method also returns the faultstring.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SOAPFault

public SOAPFault(QName faultcode,
                 java.lang.String faultstring,
                 java.lang.String faultactor,
                 Detail detail)
Constructor for SOAPFault
Method Detail

setFaultCode

public void setFaultCode(QName faultcode)
Sets the faultcode that provides an algorithmic mechanism for the identification of a SOAP fault.
Parameters:
faultCode - Qualified name of the faultcode

getFaultCode

public QName getFaultCode()
Gets the faultcode element.
Returns:
Qualified name of the faultcode element

setFaultString

public void setFaultString(java.lang.String faultstring)
Sets the faultstring element.The getMessage method also returns the faultstring.
Parameters:
faultstring - The faultstring element of the SOAP fault

getFaultString

public java.lang.String getFaultString()
Gets the faultstring element.
Returns:
faultstring element of the SOAP fault

setFaultActor

public void setFaultActor(java.lang.String faultactor)
Sets the faultactor element.
Parameters:
faultactor - faultactor element of the SOAP fault

getFaultActor

public java.lang.String getFaultActor()
Gets the faultactor element.
Returns:
faultactor element of the SOAP fault

getDetail

public Detail getDetail()
Gets the detail element.
Parameters:
Detail - element of the SOAP fault