public enum FailReason extends java.lang.Enum<FailReason> implements Lang
WebUserAuthException
Enum Constant and Description |
---|
DATABASE_NOT_OPEN |
ERROR |
EXPIRED_COOKIE |
NO_USER_PRESENT |
USER_AND_PASS_NOT_SPECIFIED |
USER_DOES_NOT_EXIST |
USER_PASS_MISMATCH |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefault() |
java.lang.String |
getIdentifier() |
java.lang.String |
getReason() |
static FailReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FailReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailReason NO_USER_PRESENT
public static final FailReason EXPIRED_COOKIE
public static final FailReason USER_AND_PASS_NOT_SPECIFIED
public static final FailReason USER_DOES_NOT_EXIST
public static final FailReason USER_PASS_MISMATCH
public static final FailReason DATABASE_NOT_OPEN
public static final FailReason ERROR
public static FailReason[] values()
for (FailReason c : FailReason.values()) System.out.println(c);
public static FailReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getReason()
public java.lang.String getIdentifier()
getIdentifier
in interface Lang
public java.lang.String getDefault()
getDefault
in interface Lang