org.apache.xmlrpc

Class XmlRpcException

Known Direct Subclasses:
XmlRpcClientException

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

private Throwable
cause
The underlying cause of this exception.
int
code
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

Throwable
getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Field Details

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 Details

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.
Parameters:
message - The message describing this exception.
cause - The root cause of this exception.

Method Details

getCause

public Throwable getCause()

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.