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:
Serializable

public class SoapFault
extends 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
 String faultactor
          The SOAP fault code
 String faultcode
          The SOAP fault code
 String faultstring
          The SOAP fault code
 
Constructor Summary
SoapFault()
           
 
Method Summary
 String getMessage()
           
 void parse(org.xmlpull.v1.XmlPullParser parser)
          Fills the fault details from the given XML stream
 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, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

faultcode

public String faultcode
The SOAP fault code


faultstring

public String faultstring
The SOAP fault code


faultactor

public 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 IOException,
                  org.xmlpull.v1.XmlPullParserException
Fills the fault details from the given XML stream

Throws:
IOException
org.xmlpull.v1.XmlPullParserException

write

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

Throws:
IOException

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()

toString

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

Overrides:
toString in class Throwable


Copyright © 2002-2011. All Rights Reserved.