krb5.lib
Class KrbException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by krb5.lib.KrbException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RealmException

public class KrbException
extends java.lang.Exception

Class Description : Kerberos exception. A modified version of the code obtained from the Open Group Research Institute.

Version:
1.1
Author:
Bojan Pajkovski
See Also:
Serialized Form

Constructor Summary
KrbException(int i)
          Class constructor
KrbException(int i, java.lang.String s)
          Class constructor
 
Method Summary
 java.lang.String errorMessage()
          Returns the error message
static java.lang.String errorMessage(int i)
          Returns error message for the given code
 java.lang.String krbErrorMessage()
          Returns the error code and the message
 int returnCode()
          Returns error code
 java.lang.String returnCodeMessage()
          Returns the error message
 java.lang.String returnCodeSymbol()
          Returns code symbol
static java.lang.String returnCodeSymbol(int i)
          Returns code symbol for a given code
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KrbException

public KrbException(int i)
Class constructor

Parameters:
i - int

KrbException

public KrbException(int i,
                    java.lang.String s)
Class constructor

Parameters:
i - int
s - String
Method Detail

returnCode

public int returnCode()
Returns error code

Returns:
int

returnCodeSymbol

public java.lang.String returnCodeSymbol()
Returns code symbol

Returns:
String

returnCodeSymbol

public static java.lang.String returnCodeSymbol(int i)
Returns code symbol for a given code

Parameters:
i - int
Returns:
String

returnCodeMessage

public java.lang.String returnCodeMessage()
Returns the error message

Returns:
String

errorMessage

public static java.lang.String errorMessage(int i)
Returns error message for the given code

Parameters:
i - int
Returns:
String

errorMessage

public java.lang.String errorMessage()
Returns the error message

Returns:
String

krbErrorMessage

public java.lang.String krbErrorMessage()
Returns the error code and the message

Returns:
String