com.distinct.rpc
Class RPCError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.distinct.rpc.RPCError
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RPCAuthError, RPCDecodeError, RPCServerError, RPCTimeoutError

public class RPCError
extends java.lang.Exception

Defines the XDR interface for all classes that implement types that can be written to or read from XDRStreams.

See Also:
RPCAuthError, RPCDecodeError, RPCServerError, RPCTimeoutError, Serialized Form

Constructor Summary
RPCError(java.lang.String s)
          Creates a new RPCError exception (reason is by default JRPC.kRPC_FAILED)
RPCError(java.lang.String s, int reasonp)
          Creates a new RPCError exception.
 
Method Summary
 int getReason()
          Returns the value describing the error reason (as defined in JRPC).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RPCError

public RPCError(java.lang.String s)
Creates a new RPCError exception (reason is by default JRPC.kRPC_FAILED)
Parameters:
s - The textual description of the error.

RPCError

public RPCError(java.lang.String s,
                int reasonp)
Creates a new RPCError exception.
Parameters:
s - The textual description of the error.
reasonp - The constant value describing the error reason (as defined in JRPC).
Method Detail

getReason

public int getReason()
Returns the value describing the error reason (as defined in JRPC).
Returns:
The constant value describing the error reason.