com.flat502.rox.marshal
Class Fault
java.lang.Object
com.flat502.rox.marshal.Fault
public class Fault
- extends java.lang.Object
A convenience class representing an XML-RPC fault.
This may be used when creating your own faults on the server side.
Constructor Summary |
Fault()
Mandatory public default constructor. |
Fault(int faultCode,
java.lang.String faultString)
Initializes a new instance using the provided fault string
and fault code. |
Method Summary |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
faultString
public java.lang.String faultString
faultCode
public int faultCode
Fault
public Fault()
- Mandatory public default constructor.
Fault
public Fault(int faultCode,
java.lang.String faultString)
- Initializes a new instance using the provided fault string
and fault code.
- Parameters:
faultCode
- A code identifying the fault.faultString
- A string describing the fault
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- A string representation of this object that includes the
underlying fault code and fault string.