com.pax.dal.exceptions
Enum EAT24CxxDevException
- java.lang.Object
-
- java.lang.Enum<EAT24CxxDevException>
-
- com.pax.dal.exceptions.EAT24CxxDevException
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<EAT24CxxDevException>
public enum EAT24CxxDevException extends java.lang.Enum<EAT24CxxDevException>
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description AT24Cxx_CHIP_WTIMEOUT超时Timeout errorAT24Cxx_CTYPE_ERR参数(卡类型)错误Parameter 'cardType' is incorrectAT24Cxx_DEVADDR_ERR参数(设备地址)错误Parameter 'devAddr' is incorrectAT24Cxx_DEVICE_CLOSE卡片接口未注册Card interface is not registeredAT24Cxx_DEVICE_NOVALID无效卡类型Invalid card type which is not part of AT24Cxx seriesAT24Cxx_DEVICE_OCCUPY设备被占用The device is occupiedAT24Cxx_NO_CARD_ERROR卡片未插入No card insertedAT24Cxx_PARA_ADDR_ERR参数(数据地址)非法Param 'addr' is invalidAT24Cxx_PARA_NUM_ERR参数(数值)错误Param nums errorAT24Cxx_RESET_ERROR重置失败Reset failedAT24Cxx_TWI_WB_ERRTWI WB错误TWI WB errorCONN_ERROR连接失败Connection errorDEVICES_ERR_UNEXPECTED未知异常Unexpected errorERR_INVALID_ARGUMENT无效参数Invalid argument errorERROR_DISABLED模块被禁用module disabledNOT_SUPPORT_ERROR不支持Not Support Exception
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetErrCodeFromBasement()java.lang.StringgetErrMsg()static EAT24CxxDevExceptionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EAT24CxxDevException[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEVICES_ERR_UNEXPECTED
public static final EAT24CxxDevException DEVICES_ERR_UNEXPECTED
未知异常Unexpected error
-
AT24Cxx_CHIP_WTIMEOUT
public static final EAT24CxxDevException AT24Cxx_CHIP_WTIMEOUT
超时Timeout error
-
AT24Cxx_CTYPE_ERR
public static final EAT24CxxDevException AT24Cxx_CTYPE_ERR
参数(卡类型)错误Parameter 'cardType' is incorrect
-
AT24Cxx_DEVADDR_ERR
public static final EAT24CxxDevException AT24Cxx_DEVADDR_ERR
参数(设备地址)错误Parameter 'devAddr' is incorrect
-
AT24Cxx_DEVICE_CLOSE
public static final EAT24CxxDevException AT24Cxx_DEVICE_CLOSE
卡片接口未注册Card interface is not registered
-
AT24Cxx_DEVICE_NOVALID
public static final EAT24CxxDevException AT24Cxx_DEVICE_NOVALID
无效卡类型Invalid card type which is not part of AT24Cxx series
-
AT24Cxx_DEVICE_OCCUPY
public static final EAT24CxxDevException AT24Cxx_DEVICE_OCCUPY
设备被占用The device is occupied
-
AT24Cxx_NO_CARD_ERROR
public static final EAT24CxxDevException AT24Cxx_NO_CARD_ERROR
卡片未插入No card inserted
-
AT24Cxx_PARA_ADDR_ERR
public static final EAT24CxxDevException AT24Cxx_PARA_ADDR_ERR
参数(数据地址)非法Param 'addr' is invalid
-
AT24Cxx_PARA_NUM_ERR
public static final EAT24CxxDevException AT24Cxx_PARA_NUM_ERR
参数(数值)错误Param nums error
-
AT24Cxx_RESET_ERROR
public static final EAT24CxxDevException AT24Cxx_RESET_ERROR
重置失败Reset failed
-
AT24Cxx_TWI_WB_ERR
public static final EAT24CxxDevException AT24Cxx_TWI_WB_ERR
TWI WB错误TWI WB error
-
CONN_ERROR
public static final EAT24CxxDevException CONN_ERROR
连接失败Connection error
-
ERR_INVALID_ARGUMENT
public static final EAT24CxxDevException ERR_INVALID_ARGUMENT
无效参数Invalid argument error
-
NOT_SUPPORT_ERROR
public static final EAT24CxxDevException NOT_SUPPORT_ERROR
不支持Not Support Exception
-
ERROR_DISABLED
public static final EAT24CxxDevException ERROR_DISABLED
模块被禁用module disabled
-
-
Method Detail
-
values
public static EAT24CxxDevException[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EAT24CxxDevException c : EAT24CxxDevException.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EAT24CxxDevException valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getErrCodeFromBasement
public int getErrCodeFromBasement()
-
getErrMsg
public java.lang.String getErrMsg()
-
-