Enum Class Errors

java.lang.Object
java.lang.Enum<Errors>
cn.hamm.airpower.exception.Errors
All Implemented Interfaces:
cn.hamm.airpower.core.interfaces.IDictionary, cn.hamm.airpower.core.interfaces.IException<cn.hamm.airpower.core.exception.ServiceException>, Serializable, Comparable<Errors>, Constable, Supplier<cn.hamm.airpower.core.exception.ServiceException>

public enum Errors extends Enum<Errors> implements cn.hamm.airpower.core.interfaces.IException<cn.hamm.airpower.core.exception.ServiceException>, cn.hamm.airpower.core.interfaces.IDictionary

系统错误代码字典

Author:
Hamm.cn
  • Enum Constant Details

    • CONTINUE

      public static final Errors CONTINUE
    • UPGRADE_CLIENT_NECESSARY

      public static final Errors UPGRADE_CLIENT_NECESSARY
    • UPGRADE_CLIENT_OPTIONAL

      public static final Errors UPGRADE_CLIENT_OPTIONAL
    • PARAM_MISSING

      public static final Errors PARAM_MISSING
    • PARAM_INVALID

      public static final Errors PARAM_INVALID
    • INVALID_APP_KEY

      public static final Errors INVALID_APP_KEY
    • SIGNATURE_INVALID

      public static final Errors SIGNATURE_INVALID
    • REPEAT_REQUEST

      public static final Errors REPEAT_REQUEST
    • TIMESTAMP_INVALID

      public static final Errors TIMESTAMP_INVALID
    • MISSING_REQUEST_ADDRESS

      public static final Errors MISSING_REQUEST_ADDRESS
    • INVALID_REQUEST_ADDRESS

      public static final Errors INVALID_REQUEST_ADDRESS
    • UNAUTHORIZED

      public static final Errors UNAUTHORIZED
    • FORBIDDEN

      public static final Errors FORBIDDEN
    • FORBIDDEN_EXIST

      public static final Errors FORBIDDEN_EXIST
    • FORBIDDEN_EDIT

      public static final Errors FORBIDDEN_EDIT
    • FORBIDDEN_DELETE

      public static final Errors FORBIDDEN_DELETE
    • FORBIDDEN_DELETE_USED

      public static final Errors FORBIDDEN_DELETE_USED
    • FORBIDDEN_UPLOAD_MAX_SIZE

      public static final Errors FORBIDDEN_UPLOAD_MAX_SIZE
    • FORBIDDEN_DISABLED

      public static final Errors FORBIDDEN_DISABLED
    • FORBIDDEN_OPEN_APP_DISABLED

      public static final Errors FORBIDDEN_OPEN_APP_DISABLED
    • FORBIDDEN_DISABLED_NOT_ALLOWED

      public static final Errors FORBIDDEN_DISABLED_NOT_ALLOWED
    • DATABASE_CONCURRENT_ERROR

      public static final Errors DATABASE_CONCURRENT_ERROR
    • DATA_NOT_FOUND

      public static final Errors DATA_NOT_FOUND
    • REQUEST_METHOD_UNSUPPORTED

      public static final Errors REQUEST_METHOD_UNSUPPORTED
    • REQUEST_CONTENT_TYPE_UNSUPPORTED

      public static final Errors REQUEST_CONTENT_TYPE_UNSUPPORTED
    • SERVICE_ERROR

      public static final Errors SERVICE_ERROR
    • DECRYPT_DATA_FAIL

      public static final Errors DECRYPT_DATA_FAIL
    • ENCRYPT_DATA_FAIL

      public static final Errors ENCRYPT_DATA_FAIL
    • JSON_DECODE_FAIL

      public static final Errors JSON_DECODE_FAIL
    • API_SERVICE_UNSUPPORTED

      public static final Errors API_SERVICE_UNSUPPORTED
    • API_DOWN

      public static final Errors API_DOWN
    • DATABASE_ERROR

      public static final Errors DATABASE_ERROR
    • DATABASE_UNKNOWN_FIELD

      public static final Errors DATABASE_UNKNOWN_FIELD
    • DATABASE_TABLE_OR_FIELD_ERROR

      public static final Errors DATABASE_TABLE_OR_FIELD_ERROR
    • REDIS_ERROR

      public static final Errors REDIS_ERROR
    • EMAIL_ERROR

      public static final Errors EMAIL_ERROR
    • WEBSOCKET_ERROR

      public static final Errors WEBSOCKET_ERROR
    • AI_ERROR

      public static final Errors AI_ERROR
  • Method Details

    • values

      public static Errors[] 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 Errors 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
    • setMessage

      @Contract(value="_ -> this", mutates="this") public Errors setMessage(String message)
      设置错误信息
      Parameters:
      message - 错误信息
      Returns:
      当前异常
    • getKey

      @Contract(pure=true) public int getKey()
      Specified by:
      getKey in interface cn.hamm.airpower.core.interfaces.IDictionary
    • getLabel

      @Contract(pure=true) public String getLabel()
      Specified by:
      getLabel in interface cn.hamm.airpower.core.interfaces.IDictionary
    • get

      @Contract(" -> new") @NotNull public @NotNull cn.hamm.airpower.core.exception.ServiceException get()
      获取一个服务异常
      Specified by:
      get in interface cn.hamm.airpower.core.interfaces.IException<cn.hamm.airpower.core.exception.ServiceException>
      Specified by:
      get in interface Supplier<cn.hamm.airpower.core.exception.ServiceException>
      Returns:
      服务异常