Enum Class FailReason

java.lang.Object
java.lang.Enum<FailReason>
com.djrapitops.plan.delivery.webserver.auth.FailReason
All Implemented Interfaces:
Lang, Serializable, Comparable<FailReason>, Constable

public enum FailReason extends Enum<FailReason> implements Lang
Reason for WebUserAuthException.
See Also:
  • Enum Constant Details

    • NO_USER_PRESENT

      public static final FailReason NO_USER_PRESENT
    • 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
    • GROUP_DOES_NOT_EXIST

      public static final FailReason GROUP_DOES_NOT_EXIST
    • USER_INFORMATION_NOT_FOUND

      public static final FailReason USER_INFORMATION_NOT_FOUND
    • NO_PERMISSION_GROUP

      public static final FailReason NO_PERMISSION_GROUP
    • 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 Details

    • values

      public static FailReason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FailReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getReason

      public String getReason()
    • getIdentifier

      public String getIdentifier()
      Specified by:
      getIdentifier in interface Lang
    • getKey

      public String getKey()
      Specified by:
      getKey in interface Lang
    • getDefault

      public String getDefault()
      Specified by:
      getDefault in interface Lang