Enum Class RedisErrorEnum

java.lang.Object
java.lang.Enum<RedisErrorEnum>
net.somta.extra.cache.redis.model.RedisErrorEnum
All Implemented Interfaces:
Serializable, Comparable<RedisErrorEnum>, Constable, net.somta.core.base.IBaseError

public enum RedisErrorEnum extends Enum<RedisErrorEnum> implements net.somta.core.base.IBaseError
Redis异常枚举
Author:
husong
  • Enum Constant Details

    • REDIS_MODE_ERROR

      public static final RedisErrorEnum REDIS_MODE_ERROR
    • REDIS_ADDRESS_ERROR

      public static final RedisErrorEnum REDIS_ADDRESS_ERROR
    • REDIS_SENTINEL_MASTER_NAME_ERROR

      public static final RedisErrorEnum REDIS_SENTINEL_MASTER_NAME_ERROR
  • Method Details

    • values

      public static RedisErrorEnum[] 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 RedisErrorEnum 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
    • getErrorCode

      public long getErrorCode()
      Specified by:
      getErrorCode in interface net.somta.core.base.IBaseError
    • getErrorMsg

      public String getErrorMsg()
      Specified by:
      getErrorMsg in interface net.somta.core.base.IBaseError