Enum FailReason

    • 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
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getReason

        public java.lang.String getReason()
      • getIdentifier

        public java.lang.String getIdentifier()
        Specified by:
        getIdentifier in interface Lang
      • getDefault

        public java.lang.String getDefault()
        Specified by:
        getDefault in interface Lang