redstone.xmlrpc
Class XmlRpcFault
java.lang.Object
java.lang.Throwable
java.lang.Exception
redstone.xmlrpc.XmlRpcFault
- All Implemented Interfaces:
- java.io.Serializable
public class XmlRpcFault
- extends java.lang.Exception
Exception thrown by the XML-RPC library in case of a fault response. The
exception is thrown only if the call was successfully made but the response
contained a fault message. If a call could not be made due to a local
problem (if an argument could not be serialized or if there was a network
problem) an XmlRpcException is thrown instead.
- Author:
- Greger Olsson
- See Also:
- Serialized Form
Field Summary |
int |
errorCode
The exception error code. |
Constructor Summary |
XmlRpcFault(int errorCode,
java.lang.String message)
Creates a new exception with the supplied message and error code. |
Method Summary |
int |
getErrorCode()
Returns the error code reported by the remote XML-RPC service. |
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 |
errorCode
public final int errorCode
- The exception error code. See XML-RPC specification.
XmlRpcFault
public XmlRpcFault(int errorCode,
java.lang.String message)
- Creates a new exception with the supplied message and error code.
The message and error code values are those returned from the remote
XML-RPC service.
- Parameters:
message
- The exception message.
getErrorCode
public int getErrorCode()
- Returns the error code reported by the remote XML-RPC service.
- Returns:
- the error code reported by the XML-RPC service.