|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.flat502.rox.processing.RpcFaultException
public class RpcFaultException
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.
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()
faultString
member within
the RPC fault.public int getFaultCode()
faultCode
member within
the RPC fault.public RpcFault toFault()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |