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, InvalidTicketException

public class KerberosException
extends java.lang.Exception

The root of the Kerberos exception hierarchy.

Version:
$Rev: 542350 $, $Date: 2007-05-29 00:24:16 +0200 (Di, 29 Mai 2007) $
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
  KerberosException(ErrorType errorType)
          Creates a KerberosException with an ErrorType.
  KerberosException(ErrorType errorType, byte[] explanatoryData)
          Creates a KerberosException with an ErrorType and data helping to explain what caused this fault.
  KerberosException(ErrorType errorType, byte[] explanatoryData, java.lang.Throwable cause)
          Creates a KerberosException with an ErrorType, data helping to explain what caused this fault, and an underlying Throwable that caused this fault.
  KerberosException(ErrorType errorType, java.lang.String msg)
          Creates a KerberosException with an ErrorType and a custom error message.
  KerberosException(ErrorType errorType, java.lang.String msg, java.lang.Throwable cause)
          Creates a KerberosException with an ErrorType, a custom error message, and an underlying Throwable that caused this fault.
  KerberosException(ErrorType errorType, java.lang.Throwable cause)
          Creates a KerberosException with an ErrorType and an underlying Throwable that caused this fault.
protected KerberosException(int errorCode, java.lang.String msg)
          Creates a KerberosException with an error code and a message.
protected 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.
protected KerberosException(int errorCode, java.lang.String msg, byte[] explanatoryData, java.lang.Throwable cause)
          Creates a KerberosException with an error code, a message, and data helping to explain what caused this fault.
protected 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(ErrorType errorType)
Creates a KerberosException with an ErrorType.

Parameters:
errorType - The error type associated with this KerberosException.

KerberosException

public KerberosException(ErrorType errorType,
                         java.lang.Throwable cause)
Creates a KerberosException with an ErrorType and an underlying Throwable that caused this fault.

Parameters:
errorType - The error type associated with this KerberosException.
cause - The underlying failure, if any.

KerberosException

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

Parameters:
errorType - The ErrorType associated with this KerberosException.
msg - A custom error message for this KerberosException.

KerberosException

public KerberosException(ErrorType errorType,
                         java.lang.String msg,
                         java.lang.Throwable cause)
Creates a KerberosException with an ErrorType, a custom error message, and an underlying Throwable that caused this fault.

Parameters:
errorType - The error type associated with this KerberosException.
msg - A custom error message for this KerberosException.
cause - The underlying failure, if any.

KerberosException

public KerberosException(ErrorType errorType,
                         byte[] explanatoryData)
Creates a KerberosException with an ErrorType 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.

KerberosException

public KerberosException(ErrorType errorType,
                         byte[] explanatoryData,
                         java.lang.Throwable cause)
Creates a KerberosException with an ErrorType, data helping to explain what caused this fault, and an underlying Throwable that caused this fault.

Parameters:
errorType - The error type associated with this KerberosException.
explanatoryData - Data helping to explain this fault, if any.
cause - The underlying failure, if any.

KerberosException

protected 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

protected 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

protected 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

protected KerberosException(int errorCode,
                            java.lang.String msg,
                            byte[] explanatoryData,
                            java.lang.Throwable cause)
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.
cause - The underlying failure, 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.