org.apache.xmlrpc
Class XmlRpcException
Exception
org.apache.xmlrpc.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.
$Id: XmlRpcException.java 233944 2005-05-02 04:22:21Z dlr $private Throwable | cause - The underlying cause of this exception.
|
int | code - The fault code of the exception.
|
XmlRpcException(int code, String message)
|
XmlRpcException(int code, String message, Throwable cause) - Creates an instance with the specified message and root cause
exception.
|
Throwable | getCause() - Returns the cause of this throwable or null if the cause is nonexistent
or unknown.
|
cause
private Throwable cause
The underlying cause of this exception.
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,
String message)
XmlRpcException
public XmlRpcException(int code,
String message,
Throwable cause)
Creates an instance with the specified message and root cause
exception.
message
- The message describing this exception.cause
- The root cause of this exception.
getCause
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.