Enum Class RC

java.lang.Object
java.lang.Enum<RC>
tech.xmagic.enums.RC
All Implemented Interfaces:
Serializable, Comparable<RC>, Constable, ResultCode

public enum RC extends Enum<RC> implements ResultCode
响应结果枚举
Since:
1.0.1
Version:
1.0.1
Author:
xmagic
  • Enum Constant Details

    • SUCCESS

      public static final RC SUCCESS
      成功
    • FAILURE

      public static final RC FAILURE
      FailureException 操作失败
    • VALIDATION_FAILURE

      public static final RC VALIDATION_FAILURE
      ValidationException
    • DATA_FAILURE

      public static final RC DATA_FAILURE
      DataException 数据错误
    • DATA_NOT_EXIST

      public static final RC DATA_NOT_EXIST
    • DATA_INSERT_FAILURE

      public static final RC DATA_INSERT_FAILURE
    • DATA_UPDATE_FAILURE

      public static final RC DATA_UPDATE_FAILURE
    • DATA_DELETE_FAILURE

      public static final RC DATA_DELETE_FAILURE
    • DATA_QUERY_FAILURE

      public static final RC DATA_QUERY_FAILURE
    • DATA_EXCEPTION

      public static final RC DATA_EXCEPTION
    • API_EXCEPTION

      public static final RC API_EXCEPTION
      ApiException
    • API_NATIVE_EXCEPTION

      public static final RC API_NATIVE_EXCEPTION
    • API_LOCAL_EXCEPTION

      public static final RC API_LOCAL_EXCEPTION
    • API_REMOTE_EXCEPTION

      public static final RC API_REMOTE_EXCEPTION
    • API_RPC_EXCEPTION

      public static final RC API_RPC_EXCEPTION
    • API_HTTP_EXCEPTION

      public static final RC API_HTTP_EXCEPTION
    • API_FEIGN_EXCEPTION

      public static final RC API_FEIGN_EXCEPTION
    • API_FOREST_EXCEPTION

      public static final RC API_FOREST_EXCEPTION
    • API_GRPC_EXCEPTION

      public static final RC API_GRPC_EXCEPTION
    • API_DUBBO_EXCEPTION

      public static final RC API_DUBBO_EXCEPTION
    • API_TIMEOUT

      public static final RC API_TIMEOUT
    • API_NATIVE_TIMEOUT

      public static final RC API_NATIVE_TIMEOUT
    • API_LOCAL_TIMEOUT

      public static final RC API_LOCAL_TIMEOUT
    • API_REMOTE_TIMEOUT

      public static final RC API_REMOTE_TIMEOUT
    • API_RPC_TIMEOUT

      public static final RC API_RPC_TIMEOUT
    • API_HTTP_TIMEOUT

      public static final RC API_HTTP_TIMEOUT
    • API_FEIGN_TIMEOUT

      public static final RC API_FEIGN_TIMEOUT
    • API_FOREST_TIMEOUT

      public static final RC API_FOREST_TIMEOUT
    • API_GRPC_TIMEOUT

      public static final RC API_GRPC_TIMEOUT
    • API_DUBBO_TIMEOUT

      public static final RC API_DUBBO_TIMEOUT
    • MQ_EXCEPTION

      public static final RC MQ_EXCEPTION
    • MQ_ROCKETMQ_EXCEPTION

      public static final RC MQ_ROCKETMQ_EXCEPTION
    • MQ_RABBITMQ_EXCEPTION

      public static final RC MQ_RABBITMQ_EXCEPTION
    • MQ_KAFKA_EXCEPTION

      public static final RC MQ_KAFKA_EXCEPTION
    • MQ_TIMEOUT

      public static final RC MQ_TIMEOUT
    • MQ_ROCKETMQ_TIMEOUT

      public static final RC MQ_ROCKETMQ_TIMEOUT
    • MQ_RABBITMQ_TIMEOUT

      public static final RC MQ_RABBITMQ_TIMEOUT
    • MQ_KAFKA_TIMEOUT

      public static final RC MQ_KAFKA_TIMEOUT
    • NOTIFY_EXCEPTION

      public static final RC NOTIFY_EXCEPTION
    • NOTIFY_TIMEOUT

      public static final RC NOTIFY_TIMEOUT
    • SYS_EXCEPTION

      public static final RC SYS_EXCEPTION
      SysException 系统错误
    • SYS_NOT_SUPPORT

      public static final RC SYS_NOT_SUPPORT
    • SYS_WRAP_EXCEPTION

      public static final RC SYS_WRAP_EXCEPTION
    • SYS_PARSE_EXCEPTION

      public static final RC SYS_PARSE_EXCEPTION
    • SYS_ENCRYPT_EXCEPTION

      public static final RC SYS_ENCRYPT_EXCEPTION
    • SYS_DECRYPT_EXCEPTION

      public static final RC SYS_DECRYPT_EXCEPTION
    • SYS_SIGN_EXCEPTION

      public static final RC SYS_SIGN_EXCEPTION
    • SYS_VERIFY_EXCEPTION

      public static final RC SYS_VERIFY_EXCEPTION
    • SYS_ENCODE_EXCEPTION

      public static final RC SYS_ENCODE_EXCEPTION
    • SYS_DECODE_EXCEPTION

      public static final RC SYS_DECODE_EXCEPTION
    • SQL_EXCEPTION

      public static final RC SQL_EXCEPTION
      数据库错误
    • DATABASE_EXCEPTION

      public static final RC DATABASE_EXCEPTION
    • UNKNOWN_EXCEPTION

      public static final RC UNKNOWN_EXCEPTION
      特殊的系统错误
    • RUNTIME_EXCEPTION

      public static final RC RUNTIME_EXCEPTION
    • EXCEPTION

      public static final RC EXCEPTION
  • Method Details

    • values

      public static RC[] 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 RC 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()
      Description copied from interface: ResultCode
      返回结果码
      Specified by:
      getCode in interface ResultCode
      Returns:
      结果码
    • getMsg

      public String getMsg()
      Description copied from interface: ResultCode
      返回提示信息
      Specified by:
      getMsg in interface ResultCode
      Returns:
      提示信息
    • getRC

      public static RC getRC(int code)
      获取响应结果枚举
      Parameters:
      code - 错误码
      Returns:
      响应结果枚举
    • getRC

      public static RC getRC(String name)
      获取响应结果枚举
      Parameters:
      name - 错误名
      Returns:
      响应结果枚举