org.apache.directory.server.kerberos.shared.exceptions
Class KerberosException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.directory.server.kerberos.shared.exceptions.KerberosException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChangePasswordException

public class KerberosException
extends java.lang.Exception

The root of the Kerberos exception hierarchy.

Version:
$Rev: 434558 $, $Date: 2006-08-25 01:11:45 +0200 (Fri, 25 Aug 2006) $
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
KerberosException(ErrorType errorType)
          Creates a KerberosException with an error type.
KerberosException(ErrorType errorType, byte[] explanatoryData)
          Creates a KerberosException with an error type and data helping to explain what caused this fault.
KerberosException(ErrorType errorType, java.lang.String msg)
          Creates a KerberosException with an error type and a custom error message.
KerberosException(int errorCode, java.lang.String msg)
          Creates a KerberosException with an error code and a message.
KerberosException(int errorCode, java.lang.String msg, byte[] explanatoryData)
          Creates a KerberosException with an error code, a message, and data helping to explain what caused this fault.
KerberosException(int errorCode, java.lang.String msg, java.lang.Throwable cause)
          Creates a KerberosException with an error code, a message and an underlying throwable that caused this fault.
 
Method Summary
 int getErrorCode()
          Gets the protocol error code associated with this KerberosException.
 byte[] getExplanatoryData()
          Gets the explanatory data associated with this KerberosException.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KerberosException

public KerberosException(int errorCode,
                         java.lang.String msg)
Creates a KerberosException with an error code and a message.

Parameters:
errorCode - the error code associated with this KerberosException
msg - the standard Kerberos error message for this KerberosException

KerberosException

public KerberosException(int errorCode,
                         java.lang.String msg,
                         java.lang.Throwable cause)
Creates a KerberosException with an error code, a message and an underlying throwable that caused this fault.

Parameters:
errorCode - the error code associated with this KerberosException
msg - the standard Kerberos error message for this KerberosException
cause - the underlying failure, if any

KerberosException

public KerberosException(int errorCode,
                         java.lang.String msg,
                         byte[] explanatoryData)
Creates a KerberosException with an error code, a message, and data helping to explain what caused this fault.

Parameters:
errorCode - the error code associated with this KerberosException
msg - the standard Kerberos error message for this KerberosException
explanatoryData - data helping to explain this fault, if any

KerberosException

public KerberosException(ErrorType errorType)
Creates a KerberosException with an error type.

Parameters:
errorType - the error type associated with this KerberosException

KerberosException

public KerberosException(ErrorType errorType,
                         java.lang.String msg)
Creates a KerberosException with an error type and a custom error message.

Parameters:
errorType - the error type associated with this KerberosException
msg - a custom error message for this KerberosException

KerberosException

public KerberosException(ErrorType errorType,
                         byte[] explanatoryData)
Creates a KerberosException with an error type and data helping to explain what caused this fault.

Parameters:
errorType - the error type associated with this KerberosException
explanatoryData - data helping to explain this fault, if any
Method Detail

getErrorCode

public int getErrorCode()
Gets the protocol error code associated with this KerberosException.

Returns:
the error code associated with this KerberosException

getExplanatoryData

public byte[] getExplanatoryData()
Gets the explanatory data associated with this KerberosException.

Returns:
the explanatory data associated with this KerberosException


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.