org.apache.xmlrpc
Class XmlRpcException
public
class
XmlRpcException
extends 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
Method Summary |
Throwable | getCause()
Returns the cause of this throwable or null if the cause is nonexistent
or unknown. |
private Throwable cause
The underlying cause of this exception.
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.)
public XmlRpcException(int code, String message)
public XmlRpcException(int code, String message, 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.
public 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 B) 1999-2002 Apache Software Foundation. All Rights Reserved.