org.apache.xmlrpc
Class XmlRpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.xmlrpc.XmlRpcException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- XmlRpcClientException
- public class XmlRpcException
- extends java.lang.Exception
This is thrown by the XmlRpcClient if the remote server reported an error.
If something went wrong at a lower level (e.g. no http connection) an
IOException will be thrown instead.
- Version:
- $Id: XmlRpcException.java 233944 2005-05-02 04:22:21Z dlr $
- Author:
- Hannes Wallnoefer
- See Also:
- Serialized Form
Field Summary |
private java.lang.Throwable |
cause
The underlying cause of this exception. |
int |
code
The fault code of the exception. |
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary |
XmlRpcException(int code,
java.lang.String message)
|
XmlRpcException(int code,
java.lang.String message,
java.lang.Throwable cause)
Creates an instance with the specified message and root cause
exception. |
Method Summary |
java.lang.Throwable |
getCause()
Returns the cause of this throwable or null if the cause is nonexistent
or unknown. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
code
public final int code
- The fault code of the exception. For servers based on this library, this
will always be 0. (If there are predefined error codes, they should be in
the XML-RPC spec.)
cause
private java.lang.Throwable cause
- The underlying cause of this exception.
XmlRpcException
public XmlRpcException(int code,
java.lang.String message)
- See Also:
XmlRpcException(int, String, Throwable)
XmlRpcException
public XmlRpcException(int code,
java.lang.String message,
java.lang.Throwable cause)
- Creates an instance with the specified message and root cause
exception.
- Parameters:
message
- The message describing this exception.cause
- The root cause of this exception.
getCause
public java.lang.Throwable getCause()
- Returns the cause of this throwable or null if the cause is nonexistent
or unknown. (The cause is the throwable that caused this throwable to
get thrown.)
This implementation returns the cause that was supplied via the constructor,
according to the rules specified for a "legacy chained throwable" that
predates the addition of chained exceptions to Throwable.
See the JDK
1.4 Throwable documentation for more information.
Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.