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

Field Summary
Throwablecause
The underlying cause of this exception.
intcode
The fault code of the exception.
Constructor Summary
XmlRpcException(int code, String message)
XmlRpcException(int code, String message, Throwable cause)
Creates an instance with the specified message and root cause exception.
Method Summary
ThrowablegetCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Field Detail

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.)

Constructor Detail

XmlRpcException

public XmlRpcException(int code, String message)

See Also: XmlRpcException

XmlRpcException

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.

Method Detail

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.