com.distinct.rpc
Class RPCAuthError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.distinct.rpc.RPCError
                    |
                    +--com.distinct.rpc.RPCAuthError
All Implemented Interfaces:
java.io.Serializable

public class RPCAuthError
extends RPCError

Interface to the portmapper.

See Also:
Serialized Form

Constructor Summary
RPCAuthError(int auth_failure)
          Thrown when an authentication failed.
 
Method Summary
 int getAuthFailure()
          Returns the reason why the exception has been thrown.
 
Methods inherited from class com.distinct.rpc.RPCError
getReason
 
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

RPCAuthError

public RPCAuthError(int auth_failure)
Thrown when an authentication failed.
Parameters:
auth_failure - The reason why the authentication failed (one of JRPC.kAUTH_BADCRED, JRPC.kAUTH_REJECTEDCRED, JRPC.kAUTH_BADVERF, JRPC.kAUTH_REJECTEDVERF, JRPC.kAUTH_TOOWEAK).
Method Detail

getAuthFailure

public int getAuthFailure()
Returns the reason why the exception has been thrown.
Returns:
The reason why the authentication failed (one of JRPC.kAUTH_BADCRED, JRPC.kAUTH_REJECTEDCRED, JRPC.kAUTH_BADVERF, JRPC.kAUTH_REJECTEDVERF, JRPC.kAUTH_TOOWEAK).