Enum Class PasscodeRuleException.ErrorCode

java.lang.Object
java.lang.Enum<PasscodeRuleException.ErrorCode>
com.thalesgroup.gemalto.fido2.authenticator.passcode.PasscodeRuleException.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<PasscodeRuleException.ErrorCode>, Constable
Enclosing class:
PasscodeRuleException

public static enum PasscodeRuleException.ErrorCode extends Enum<PasscodeRuleException.ErrorCode>
Defines the specific error codes for passcode rule violations.
Since:
1.3.0
  • Enum Constant Details

  • Method Details

    • values

      public static PasscodeRuleException.ErrorCode[] 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 PasscodeRuleException.ErrorCode 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
    • getCode

      public int getCode()
      Gets the integer value of the error code.
      Returns:
      The integer representation of the error code.
      Since:
      1.3.0
    • getMessage

      @NonNull public String getMessage()
      Gets the descriptive message for the error code.
      Returns:
      The error message.
      Since:
      1.3.0