org.apache.directory.server.changepw.exceptions
Class ErrorType

java.lang.Object
  extended by org.apache.directory.server.changepw.exceptions.ErrorType
All Implemented Interfaces:
java.lang.Comparable

public final class ErrorType
extends java.lang.Object
implements java.lang.Comparable

Type safe enumeration of Change Password error types

Version:
$Rev: 434438 $
Author:
Apache Directory Project

Field Summary
static ErrorType KRB5_KPASSWD_ACCESSDENIED
           
static ErrorType KRB5_KPASSWD_AUTHERROR
           
static ErrorType KRB5_KPASSWD_BAD_VERSION
           
static ErrorType KRB5_KPASSWD_HARDERROR
           
static ErrorType KRB5_KPASSWD_INITIAL_FLAG_NEEDED
           
static ErrorType KRB5_KPASSWD_MALFORMED
           
static ErrorType KRB5_KPASSWD_SOFTERROR
           
static ErrorType KRB5_KPASSWD_UNKNOWN_ERROR
           
static java.util.List VALUES
          a list of all the error type constants
 
Method Summary
 int compareTo(java.lang.Object that)
          Compares this type to another object hopefully one that is of the same type.
 java.lang.String getMessage()
          Returns the message for this Change Password error.
 int getOrdinal()
          Gets the ordinal value associated with this Change Password error.
static ErrorType getTypeByOrdinal(int ordinal)
          Gets the ordinal by its ordinal value.
 java.lang.String toString()
          Returns the message for this Change Password error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

KRB5_KPASSWD_MALFORMED

public static final ErrorType KRB5_KPASSWD_MALFORMED

KRB5_KPASSWD_HARDERROR

public static final ErrorType KRB5_KPASSWD_HARDERROR

KRB5_KPASSWD_AUTHERROR

public static final ErrorType KRB5_KPASSWD_AUTHERROR

KRB5_KPASSWD_SOFTERROR

public static final ErrorType KRB5_KPASSWD_SOFTERROR

KRB5_KPASSWD_ACCESSDENIED

public static final ErrorType KRB5_KPASSWD_ACCESSDENIED

KRB5_KPASSWD_BAD_VERSION

public static final ErrorType KRB5_KPASSWD_BAD_VERSION

KRB5_KPASSWD_INITIAL_FLAG_NEEDED

public static final ErrorType KRB5_KPASSWD_INITIAL_FLAG_NEEDED

KRB5_KPASSWD_UNKNOWN_ERROR

public static final ErrorType KRB5_KPASSWD_UNKNOWN_ERROR

VALUES

public static final java.util.List VALUES
a list of all the error type constants

Method Detail

getMessage

public java.lang.String getMessage()
Returns the message for this Change Password error.

Returns:
the message for this Change Password error.

toString

public java.lang.String toString()
Returns the message for this Change Password error.

Overrides:
toString in class java.lang.Object
Returns:
the message for this Change Password error.

compareTo

public int compareTo(java.lang.Object that)
Compares this type to another object hopefully one that is of the same type.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
that - the object to compare this ErrorType to
Returns:
ordinal - ( ( ErrorType ) that ).ordinal;

getTypeByOrdinal

public static ErrorType getTypeByOrdinal(int ordinal)
Gets the ordinal by its ordinal value.

Parameters:
ordinal - the ordinal value of the ordinal
Returns:
the type corresponding to the ordinal value

getOrdinal

public int getOrdinal()
Gets the ordinal value associated with this Change Password error.

Returns:
the ordinal value associated with this Change Password error


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