com.pax.dal.exceptions
Enum ECommException
- java.lang.Object
-
- java.lang.Enum<ECommException>
-
- com.pax.dal.exceptions.ECommException
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ECommException>
public enum ECommException extends java.lang.Enum<ECommException>
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description COMM_ERR_CANCEL用户取消cancelCOMM_ERR_CONNECT连接失败connect errorCOMM_ERR_DISCONNECT断开连接失败disconnect errorCOMM_ERR_HTTP_GETHTTP GET失败http get errorCOMM_ERR_HTTP_POSTHTTP POST失败http post errorCOMM_ERR_KEY_MANAGEMENT密钥管理错误key management errorCOMM_ERR_RECV接收失败recv errorCOMM_ERR_SEND发送失败send errorDEVICES_ERR_CONNECTRPC I/O 连接异常connect errorDEVICES_ERR_NO_PERMISSION无权限异常no permission errorDEVICES_ERR_NO_SUPPORT不支持not support errorDEVICES_ERR_NULL_POINTRPC 参数为NULLnull point errorDEVICES_ERR_UNEXPECTED未知异常unexpected error
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetErrCodeFromBasement()java.lang.StringgetErrMsg()static ECommExceptionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ECommException[]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 ECommException DEVICES_ERR_UNEXPECTED
未知异常unexpected error
-
DEVICES_ERR_NULL_POINT
public static final ECommException DEVICES_ERR_NULL_POINT
RPC 参数为NULLnull point error
-
DEVICES_ERR_CONNECT
public static final ECommException DEVICES_ERR_CONNECT
RPC I/O 连接异常connect error
-
DEVICES_ERR_NO_SUPPORT
public static final ECommException DEVICES_ERR_NO_SUPPORT
不支持not support error
-
DEVICES_ERR_NO_PERMISSION
public static final ECommException DEVICES_ERR_NO_PERMISSION
无权限异常no permission error
-
COMM_ERR_CONNECT
public static final ECommException COMM_ERR_CONNECT
连接失败connect error
-
COMM_ERR_SEND
public static final ECommException COMM_ERR_SEND
发送失败send error
-
COMM_ERR_RECV
public static final ECommException COMM_ERR_RECV
接收失败recv error
-
COMM_ERR_DISCONNECT
public static final ECommException COMM_ERR_DISCONNECT
断开连接失败disconnect error
-
COMM_ERR_HTTP_GET
public static final ECommException COMM_ERR_HTTP_GET
HTTP GET失败http get error
-
COMM_ERR_HTTP_POST
public static final ECommException COMM_ERR_HTTP_POST
HTTP POST失败http post error
-
COMM_ERR_CANCEL
public static final ECommException COMM_ERR_CANCEL
用户取消cancel
-
COMM_ERR_KEY_MANAGEMENT
public static final ECommException COMM_ERR_KEY_MANAGEMENT
密钥管理错误key management error
-
-
Method Detail
-
values
public static ECommException[] 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 (ECommException c : ECommException.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECommException 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()
-
-