Module bus.auth

Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
org.miaixz.bus.auth.magic.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
通用的状态码对照表
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • SUCCESS

      public static final ErrorCode SUCCESS
      2000:正常; other:调用异常,具体异常内容见msg
    • FAILURE

      public static final ErrorCode FAILURE
    • NOT_IMPLEMENTED

      public static final ErrorCode NOT_IMPLEMENTED
    • PARAMETER_INCOMPLETE

      public static final ErrorCode PARAMETER_INCOMPLETE
    • UNSUPPORTED

      public static final ErrorCode UNSUPPORTED
    • NO_AUTH_SOURCE

      public static final ErrorCode NO_AUTH_SOURCE
    • UNIDENTIFIED_PLATFORM

      public static final ErrorCode UNIDENTIFIED_PLATFORM
    • ILLEGAL_REDIRECT_URI

      public static final ErrorCode ILLEGAL_REDIRECT_URI
    • ILLEGAL_REQUEST

      public static final ErrorCode ILLEGAL_REQUEST
    • ILLEGAL_CODE

      public static final ErrorCode ILLEGAL_CODE
    • ILLEGAL_STATUS

      public static final ErrorCode ILLEGAL_STATUS
    • REQUIRED_REFRESH_TOKEN

      public static final ErrorCode REQUIRED_REFRESH_TOKEN
    • ILLEGAL_TOKEN

      public static final ErrorCode ILLEGAL_TOKEN
    • ILLEGAL_KID

      public static final ErrorCode ILLEGAL_KID
    • ILLEGAL_TEAM_ID

      public static final ErrorCode ILLEGAL_TEAM_ID
    • ILLEGAL_CLIENT_ID

      public static final ErrorCode ILLEGAL_CLIENT_ID
    • ILLEGAL_CLIENT_SECRET

      public static final ErrorCode ILLEGAL_CLIENT_SECRET
    • ILLEGAL_WECHAT_AGENT_ID

      public static final ErrorCode ILLEGAL_WECHAT_AGENT_ID
  • Method Details

    • values

      public static 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 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