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.html 359531 2005-12-28 13:59:25Z jochen $
- Author:
- Hannes Wallnoefer
- See Also:
- Serialized Form
Field Summary |
int |
code
The fault code of the exception. |
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.)
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:
int
- The fault code for this problem.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.
- Overrides:
getCause
in class java.lang.Throwable
Copyright 2001-2001-2005 Apache Software Foundation. All Rights Reserved.