All Packages Class Hierarchy This Package Previous Next Index
Class distinct.rpc.RPCError
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----distinct.rpc.RPCError
- public class RPCError
- extends 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
-
RPCError(String)
- Creates a new RPCError exception (reason is by default JRPC.kRPC_FAILED)
-
RPCError(String, int)
- Creates a new RPCError exception.
-
getReason()
- Returns the value describing the error reason (as defined in JRPC).
RPCError
public RPCError(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(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).
getReason
public int getReason()
- Returns the value describing the error reason (as defined in JRPC).
- Returns:
- The constant value describing the error reason.
All Packages Class Hierarchy This Package Previous Next Index