Class RpcFaultException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.flat502.rox.processing.RpcFaultException
All Implemented Interfaces:
Direct Known Subclasses:

public class RpcFaultException
extends java.lang.RuntimeException

An exception encapsulating an RpcFault.

On the client side, an instance of this class is created and raised when a remote RPC fault is returned in response to a method call.

On the server side implementations may raise this from within a handler to indicate that a fault should be returned.

This exception is a RuntimeException to allow implementations to raise it from within objects proxyied on the server side (using a ProxyingRequestHandler) without forcing them to declare the exception as part of their method signature.

See Also:
Serialized Form

Constructor Summary
RpcFaultException(RpcFault fault)
Method Summary
 int getFaultCode()
          Get the fault code for the underlying RPC fault.
 java.lang.String getFaultString()
          Get the fault string for the underlying RPC fault.
 RpcFault toFault()
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public RpcFaultException(RpcFault fault)
Method Detail


public java.lang.String getFaultString()
Get the fault string for the underlying RPC fault.

The value of the faultString member within the RPC fault.


public int getFaultCode()
Get the fault code for the underlying RPC fault.

The value of the faultCode member within the RPC fault.


public RpcFault toFault()