org.ksoap2
Class SoapFault

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.ksoap2.SoapFault
All Implemented Interfaces:
java.io.Serializable

public class SoapFault
extends java.io.IOException

Exception class encapsulating SOAP Faults

See Also:
Serialized Form

Field Summary
 org.kxml2.kdom.Node detail
          A KDom Node holding the details of the fault
 java.lang.String faultactor
          The SOAP fault code
 java.lang.String faultcode
          The SOAP fault code
 java.lang.String faultstring
          The SOAP fault code
 
Constructor Summary
SoapFault()
           
 
Method Summary
 void parse(org.xmlpull.v1.XmlPullParser parser)
          Fills the fault details from the given XML stream
 java.lang.String toString()
          Returns a simple string representation of the fault
 void write(org.xmlpull.v1.XmlSerializer xw)
          Writes the fault to the given XML stream
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

faultcode

public java.lang.String faultcode
The SOAP fault code


faultstring

public java.lang.String faultstring
The SOAP fault code


faultactor

public java.lang.String faultactor
The SOAP fault code


detail

public org.kxml2.kdom.Node detail
A KDom Node holding the details of the fault

Constructor Detail

SoapFault

public SoapFault()
Method Detail

parse

public void parse(org.xmlpull.v1.XmlPullParser parser)
           throws java.io.IOException,
                  org.xmlpull.v1.XmlPullParserException
Fills the fault details from the given XML stream

Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException

write

public void write(org.xmlpull.v1.XmlSerializer xw)
           throws java.io.IOException
Writes the fault to the given XML stream

Throws:
java.io.IOException

toString

public java.lang.String toString()
Returns a simple string representation of the fault

Overrides:
toString in class java.lang.Throwable