com.pax.dal.exceptions
Enum ENetworkException
- java.lang.Object
-
- java.lang.Enum<ENetworkException>
-
- com.pax.dal.exceptions.ENetworkException
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ENetworkException>
public enum ENetworkException extends java.lang.Enum<ENetworkException>
网络异常类。Network exception.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description CERT_CHECK_ERROR证书链校验错误The certificate chain verification errorCREATE_SOCKET_ERROR创建socket错误Socket creation errorCREATE_SSLFACTORY_ERROR设备不是客户白名单模式This device not in customer white list modeCREATE_URLCONNECTION_ERROR创建URLConnection错误Error creating URLConnectionDEVICES_ERR_CONNECTRPC I/O 连接异常connect errorDEVICES_ERR_INVALID_ARGUMENT参数错误invalid argument errorDEVICES_ERR_NO_PERMISSION无权限异常no permission errorDEVICES_ERR_NO_SUPPORT不支持not support errorDEVICES_ERR_UNEXPECTED未知异常unexpected errorERR_ALREADY_CUS_WHITELIST_MODE设备已经是客户白名单模式This device already in customer white list modeERR_ALREADY_WHITELIST_MODE设备已经是白名单模式This device already in white list modeERR_NOT_CUS_WHITELIST_MODE设备不是客户白名单模式This device not in customer white list modeERR_NOT_WHITELIST_MODE设备不是白名单模式This device not in white list modeHOST_NOT_IN_WHITE_LISThost不在网络白名单host is not in the network whitelistNETWORK_EXECUTE_FAIL执行规则失败Failed to execute the ruleNO_PERMISSION_CALL_ERROR无调用权限No call permissionNO_SUPPORT_WHITELIST_MODE设备不支持白名单模式This device does not support white list modeSERVICE_NOT_AVAILABLE服务不可用。Service not available.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetErrCodeFromBasement()java.lang.StringgetErrMsg()static ENetworkExceptionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ENetworkException[]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 ENetworkException DEVICES_ERR_UNEXPECTED
未知异常unexpected error
-
DEVICES_ERR_INVALID_ARGUMENT
public static final ENetworkException DEVICES_ERR_INVALID_ARGUMENT
参数错误invalid argument error
-
DEVICES_ERR_CONNECT
public static final ENetworkException DEVICES_ERR_CONNECT
RPC I/O 连接异常connect error
-
DEVICES_ERR_NO_SUPPORT
public static final ENetworkException DEVICES_ERR_NO_SUPPORT
不支持not support error
-
DEVICES_ERR_NO_PERMISSION
public static final ENetworkException DEVICES_ERR_NO_PERMISSION
无权限异常no permission error
-
SERVICE_NOT_AVAILABLE
public static final ENetworkException SERVICE_NOT_AVAILABLE
服务不可用。Service not available.
-
NETWORK_EXECUTE_FAIL
public static final ENetworkException NETWORK_EXECUTE_FAIL
执行规则失败Failed to execute the rule
-
NO_SUPPORT_WHITELIST_MODE
public static final ENetworkException NO_SUPPORT_WHITELIST_MODE
设备不支持白名单模式This device does not support white list mode
-
ERR_ALREADY_WHITELIST_MODE
public static final ENetworkException ERR_ALREADY_WHITELIST_MODE
设备已经是白名单模式This device already in white list mode
-
ERR_NOT_WHITELIST_MODE
public static final ENetworkException ERR_NOT_WHITELIST_MODE
设备不是白名单模式This device not in white list mode
-
ERR_ALREADY_CUS_WHITELIST_MODE
public static final ENetworkException ERR_ALREADY_CUS_WHITELIST_MODE
设备已经是客户白名单模式This device already in customer white list mode
-
ERR_NOT_CUS_WHITELIST_MODE
public static final ENetworkException ERR_NOT_CUS_WHITELIST_MODE
设备不是客户白名单模式This device not in customer white list mode
-
CREATE_SOCKET_ERROR
public static final ENetworkException CREATE_SOCKET_ERROR
创建socket错误Socket creation error
-
CREATE_SSLFACTORY_ERROR
public static final ENetworkException CREATE_SSLFACTORY_ERROR
设备不是客户白名单模式This device not in customer white list mode
-
CREATE_URLCONNECTION_ERROR
public static final ENetworkException CREATE_URLCONNECTION_ERROR
创建URLConnection错误Error creating URLConnection
-
HOST_NOT_IN_WHITE_LIST
public static final ENetworkException HOST_NOT_IN_WHITE_LIST
host不在网络白名单host is not in the network whitelist
-
NO_PERMISSION_CALL_ERROR
public static final ENetworkException NO_PERMISSION_CALL_ERROR
无调用权限No call permission
-
CERT_CHECK_ERROR
public static final ENetworkException CERT_CHECK_ERROR
证书链校验错误The certificate chain verification error
-
-
Method Detail
-
values
public static ENetworkException[] 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 (ENetworkException c : ENetworkException.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ENetworkException 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()
-
-