org.apache.directory.server.kerberos.sam
Class SamException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.directory.server.kerberos.sam.SamException
All Implemented Interfaces:
java.io.Serializable

public class SamException
extends java.lang.Exception

Base class for all SAM subsystem errors.

Version:
$Rev: 434436 $
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
SamException(SamType type)
          Creates a SamException for a specific SamType.
SamException(SamType type, java.lang.String message)
          Creates a SamException for a specific SamType, with message.
SamException(SamType type, java.lang.String message, java.lang.Throwable cause)
          Creates a SamException for a specific SamType, with a message and the cause that resulted in this exception.
SamException(SamType type, java.lang.Throwable cause)
          Creates a SamException for a specific SamType, with the cause resulted in this exception.
 
Method Summary
 SamType getSamType()
          Gets the registered SAM algorithm type associated with this SamException.
 
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

SamException

public SamException(SamType type)
Creates a SamException for a specific SamType.

Parameters:
type - the type value for the SAM algorithm associated with this exception

SamException

public SamException(SamType type,
                    java.lang.String message)
Creates a SamException for a specific SamType, with message.

Parameters:
type - the type value for the SAM algorithm associated with this exception
message - a message regarding the nature of the fault

SamException

public SamException(SamType type,
                    java.lang.Throwable cause)
Creates a SamException for a specific SamType, with the cause resulted in this exception.

Parameters:
type - the type value for the SAM algorithm associated with this exception
cause - the throwable that resulted in this exception being thrown

SamException

public SamException(SamType type,
                    java.lang.String message,
                    java.lang.Throwable cause)
Creates a SamException for a specific SamType, with a message and the cause that resulted in this exception.

Parameters:
type - the type value for the SAM algorithm associated with this exception
message - a message regarding the nature of the fault
cause - the throwable that resulted in this exception being thrown
Method Detail

getSamType

public SamType getSamType()
Gets the registered SAM algorithm type associated with this SamException.

Returns:
the type value for the SAM algorithm associated with this exception


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