marquee.xmlrpc
Class XmlRpcException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bymarquee.xmlrpc.XmlRpcException
All Implemented Interfaces:
java.io.Serializable

public class XmlRpcException
extends java.lang.Exception

The exception thrown by the XML-RPC library.

Since:
JDK 1.1
Version:
$Revision: 1.3 $
Author:
Greger Ohlson (greger.ohlson@marquee.se)
See Also:
Serialized Form

Field Summary
 boolean isRemote
          Indicates if the exception ocurred locally or at the terminating XML-RPC end-point
 
Constructor Summary
XmlRpcException(int errorCode, java.lang.String message)
          Creates a new exception with the supplied message and supplied error code.
XmlRpcException(int errorCode, java.lang.String message, java.lang.Throwable cause)
          Creates a new exception with the supplied message and supplied error code.
XmlRpcException(java.lang.String message)
          Creates a new exception with the supplied message and error code 0.
XmlRpcException(java.lang.String message, boolean isRemote)
          Creates a new exception with the supplied message and error code 0.
XmlRpcException(java.lang.String message, java.lang.Throwable cause)
          Creates a new exception with the supplied message and error code 0.
 
Method Summary
 int getErrorCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isRemote

public boolean isRemote
Indicates if the exception ocurred locally or at the terminating XML-RPC end-point

Constructor Detail

XmlRpcException

public XmlRpcException(java.lang.String message)
Creates a new exception with the supplied message and error code 0. By default, the exception is marked as a local exception.

Parameters:
message - The exception message.

XmlRpcException

public XmlRpcException(java.lang.String message,
                       java.lang.Throwable cause)
Creates a new exception with the supplied message and error code 0. By default, the exception is marked as a local exception.

Parameters:
message - The exception message.
cause - The exception that caused the problem

XmlRpcException

public XmlRpcException(java.lang.String message,
                       boolean isRemote)
Creates a new exception with the supplied message and error code 0. The exception is marked as either a local or remote exception based on the isRemote argument.

Parameters:
message - The exception message.
isRemote - Determines if the exception ocurred locally or at the remote end-endpoint.

XmlRpcException

public XmlRpcException(int errorCode,
                       java.lang.String message)
Creates a new exception with the supplied message and supplied error code.

Parameters:
errorCode - The XML-RPC error code. See specification.
message - The exception message.

XmlRpcException

public XmlRpcException(int errorCode,
                       java.lang.String message,
                       java.lang.Throwable cause)
Creates a new exception with the supplied message and supplied error code.

Parameters:
errorCode - The XML-RPC error code. See specification.
message - The exception message.
cause - The exception that caused the problem.
Method Detail

getErrorCode

public int getErrorCode()