com.flat502.rox.marshal
Interface RpcFault

All Superinterfaces:
RpcMethod, RpcResponse
All Known Implementing Classes:
XmlRpcMethodFault

public interface RpcFault
extends RpcResponse

An interface representing a generalized RPC method call fault.

This interface is patterned after XML-RPC and extends the RpcResponse interface by adding the idea of a fault code and fault string.


Method Summary
 int getFaultCode()
          Get the fault code for this RPC fault.
 java.lang.String getFaultString()
          Get the fault string describing the fault code and the fault in more detail.
 
Methods inherited from interface com.flat502.rox.marshal.RpcResponse
getReturnValue
 
Methods inherited from interface com.flat502.rox.marshal.RpcMethod
getContentType, marshal
 

Method Detail

getFaultCode

int getFaultCode()
Get the fault code for this RPC fault.

Fault codes are implementation-dependent.

Returns:
The fault code for this RPC fault.

getFaultString

java.lang.String getFaultString()
Get the fault string describing the fault code and the fault in more detail.

Fault strings are implementation-dependent. In general fault codes should be used for programmatic handling of faults and fault strings for display only.

Returns:
The fault string for this RPC fault.