Enum Class AdminErrorCode

java.lang.Object
java.lang.Enum<AdminErrorCode>
io.github.xezzon.zeroweb.common.exception.AdminErrorCode
All Implemented Interfaces:
io.github.xezzon.zeroweb.core.error.IErrorCode, Serializable, Comparable<AdminErrorCode>, Constable

public enum AdminErrorCode extends Enum<AdminErrorCode> implements io.github.xezzon.zeroweb.core.error.IErrorCode
错误码分配中心
Author:
xezzon
  • Enum Constant Details

    • INVALID_PASSWORD

      public static final AdminErrorCode INVALID_PASSWORD
      用户名或密码错误
  • Method Details

    • values

      public static AdminErrorCode[] 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 AdminErrorCode 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
    • mapping

      public static io.github.xezzon.zeroweb.core.error.IErrorCode mapping(Class<? extends Throwable> exceptionClass)
    • sourceType

      public io.github.xezzon.zeroweb.core.error.ErrorSourceType sourceType()
      Specified by:
      sourceType in interface io.github.xezzon.zeroweb.core.error.IErrorCode
    • moduleCode

      public byte moduleCode()
      Specified by:
      moduleCode in interface io.github.xezzon.zeroweb.core.error.IErrorCode