Copyright © Rasmus Sten and contributors, 1997-2004

nu.dll.lyskom
Class RpcFailure

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--nu.dll.lyskom.RpcFailure
All Implemented Interfaces:
java.io.Serializable

public class RpcFailure
extends java.lang.RuntimeException

Represents a failed RPC call.
Note: although this call is a RuntimeException now, this might change in the future to enforce more strict error handling of RPC calls.

See Also:
Serialized Form

Method Summary
 int getError()
          Returns the error code returned by the server.
 int getErrorStatus()
          Returns the error status returned by the server.
 java.lang.Throwable getException()
           
 java.lang.String getMessage()
          Returns a string containing the error code and status.
 nu.dll.lyskom.RpcReply getReply()
          Returns the RpcReply object representing the actual RPC reply.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getException

public java.lang.Throwable getException()

getReply

public nu.dll.lyskom.RpcReply getReply()
Returns the RpcReply object representing the actual RPC reply.


getError

public int getError()
Returns the error code returned by the server.


getErrorStatus

public int getErrorStatus()
Returns the error status returned by the server.


getMessage

public java.lang.String getMessage()
Returns a string containing the error code and status.

Overrides:
getMessage in class java.lang.Throwable

Copyright © Rasmus Sten and contributors, 1997-2004