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

Constructor Index

 o RPCError(String)
Creates a new RPCError exception (reason is by default JRPC.kRPC_FAILED)
 o RPCError(String, int)
Creates a new RPCError exception.

Method Index

 o getReason()
Returns the value describing the error reason (as defined in JRPC).

Constructors

 o 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.
 o 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).

Methods

 o 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