Enum FailReason
- java.lang.Object
-
- java.lang.Enum<FailReason>
-
- com.djrapitops.plan.delivery.webserver.auth.FailReason
-
- All Implemented Interfaces:
Lang
,java.io.Serializable
,java.lang.Comparable<FailReason>
public enum FailReason extends java.lang.Enum<FailReason> implements Lang
Reason for WebUserAuthException.- See Also:
WebUserAuthException
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATABASE_NOT_OPEN
ERROR
EXPIRED_COOKIE
NO_USER_PRESENT
USER_AND_PASS_NOT_SPECIFIED
USER_DOES_NOT_EXIST
USER_INFORMATION_NOT_FOUND
USER_PASS_MISMATCH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
NO_USER_PRESENT
public static final FailReason NO_USER_PRESENT
-
EXPIRED_COOKIE
public static final FailReason EXPIRED_COOKIE
-
USER_AND_PASS_NOT_SPECIFIED
public static final FailReason USER_AND_PASS_NOT_SPECIFIED
-
USER_DOES_NOT_EXIST
public static final FailReason USER_DOES_NOT_EXIST
-
USER_INFORMATION_NOT_FOUND
public static final FailReason USER_INFORMATION_NOT_FOUND
-
USER_PASS_MISMATCH
public static final FailReason USER_PASS_MISMATCH
-
DATABASE_NOT_OPEN
public static final FailReason DATABASE_NOT_OPEN
-
ERROR
public static final FailReason ERROR
-
-
Method Detail
-
values
public static FailReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FailReason c : FailReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FailReason valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getReason
public java.lang.String getReason()
-
getIdentifier
public java.lang.String getIdentifier()
- Specified by:
getIdentifier
in interfaceLang
-
getDefault
public java.lang.String getDefault()
- Specified by:
getDefault
in interfaceLang
-
-