com.pax.dal.exceptions
Enum EOCRException
- java.lang.Object
-
- java.lang.Enum<EOCRException>
-
- com.pax.dal.exceptions.EOCRException
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<EOCRException>
public enum EOCRException extends java.lang.Enum<EOCRException>
OCR异常类。OCR exception.
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description DEVICES_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 errorNO_AVAILABLE_NETWORK无可用网络Network connection errorOCR_ERR_AUTH_INFORMATION授权信息错误或其他未知错误Authentication information errorOCR_ERR_CAMERA_ID摄像头ID设置错误Camera ID errorOCR_ERR_CREDENTIALS_TYPE不支持的证件类型Certificate type errorOCR_ERR_IS_OPENDOCR模块已openThe ocr is openedOCR_ERR_IS_STARTEDOCR模块已startThe ocr is startedOCR_ERR_NOT_OPENDOCR模块未openThe ocr is not openedOCR_ERR_NOT_STARTEDOCR模块未startThe ocr is not startedOCR_ERR_REQUEST_INFORMATION请求信息错误或设备未授权Request information error or Unauthorized deviceOCR_ERR_TIME_VALUE超时时间设置错误Time value errorSERVICE_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 EOCRExceptionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EOCRException[]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 EOCRException DEVICES_ERR_UNEXPECTED
未知异常unexpected error
-
DEVICES_ERR_INVALID_ARGUMENT
public static final EOCRException DEVICES_ERR_INVALID_ARGUMENT
参数错误invalid argument error
-
DEVICES_ERR_CONNECT
public static final EOCRException DEVICES_ERR_CONNECT
RPC I/O 连接异常connect error
-
DEVICES_ERR_NO_SUPPORT
public static final EOCRException DEVICES_ERR_NO_SUPPORT
不支持not support error
-
DEVICES_ERR_NO_PERMISSION
public static final EOCRException DEVICES_ERR_NO_PERMISSION
无权限异常no permission error
-
SERVICE_NOT_AVAILABLE
public static final EOCRException SERVICE_NOT_AVAILABLE
服务不可用错误Service not available
-
NO_AVAILABLE_NETWORK
public static final EOCRException NO_AVAILABLE_NETWORK
无可用网络Network connection error
-
OCR_ERR_REQUEST_INFORMATION
public static final EOCRException OCR_ERR_REQUEST_INFORMATION
请求信息错误或设备未授权Request information error or Unauthorized device
-
OCR_ERR_AUTH_INFORMATION
public static final EOCRException OCR_ERR_AUTH_INFORMATION
授权信息错误或其他未知错误Authentication information error
-
OCR_ERR_CAMERA_ID
public static final EOCRException OCR_ERR_CAMERA_ID
摄像头ID设置错误Camera ID error
-
OCR_ERR_CREDENTIALS_TYPE
public static final EOCRException OCR_ERR_CREDENTIALS_TYPE
不支持的证件类型Certificate type error
-
OCR_ERR_TIME_VALUE
public static final EOCRException OCR_ERR_TIME_VALUE
超时时间设置错误Time value error
-
OCR_ERR_IS_OPEND
public static final EOCRException OCR_ERR_IS_OPEND
OCR模块已openThe ocr is opened
-
OCR_ERR_NOT_OPEND
public static final EOCRException OCR_ERR_NOT_OPEND
OCR模块未openThe ocr is not opened
-
OCR_ERR_IS_STARTED
public static final EOCRException OCR_ERR_IS_STARTED
OCR模块已startThe ocr is started
-
OCR_ERR_NOT_STARTED
public static final EOCRException OCR_ERR_NOT_STARTED
OCR模块未startThe ocr is not started
-
-
Method Detail
-
values
public static EOCRException[] 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 (EOCRException c : EOCRException.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EOCRException 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()
-
-