public static final class GiniVisionError.ErrorCode
extends java.lang.Enum
Definition of Gini Vision Library error codes.
Modifier and Type | Field and Description |
---|---|
static GiniVisionError.ErrorCode |
ANALYSIS
An error occurred in the Analysis Screen.
|
static GiniVisionError.ErrorCode |
CAMERA_NO_ACCESS
Couldn't get access to the camera.
|
static GiniVisionError.ErrorCode |
CAMERA_NO_PREVIEW
Camera preview could not be started.
|
static GiniVisionError.ErrorCode |
CAMERA_OPEN_FAILED
Camera couldn't be opened due to an unexpected error.
|
static GiniVisionError.ErrorCode |
CAMERA_SHOT_FAILED
Camera couldn't take a picture.
|
static GiniVisionError.ErrorCode |
CAMERA_UNKNOWN
An unexpected camera error occurred.
|
static GiniVisionError.ErrorCode |
DOCUMENT_IMPORT
An error occurred while a document was imported from the device.
|
static GiniVisionError.ErrorCode |
REVIEW
An error occurred in the Review Screen.
|
Modifier and Type | Method and Description |
---|---|
static GiniVisionError.ErrorCode |
valueOf(java.lang.String name) |
static GiniVisionError.ErrorCode[] |
values() |
public static final GiniVisionError.ErrorCode CAMERA_NO_ACCESS
Couldn't get access to the camera. Most likely cause is either not declaring the camera permission in the manifest and on Android 6+ not requesting the camera permission from the user. Check the message for details.
public static final GiniVisionError.ErrorCode CAMERA_OPEN_FAILED
Camera couldn't be opened due to an unexpected error. Check the message for details.
public static final GiniVisionError.ErrorCode CAMERA_NO_PREVIEW
Camera preview could not be started. Likely causes are that the camera was closed before preview could start or the View used to show the preview images couldn't initialize. Check the message for details.
public static final GiniVisionError.ErrorCode CAMERA_SHOT_FAILED
Camera couldn't take a picture. Likely causes are that the camera was closed between requesting a picture and taking the picture or the camera didn't return an image. Check the message for details.
public static final GiniVisionError.ErrorCode CAMERA_UNKNOWN
An unexpected camera error occurred. Check the message for details.
public static final GiniVisionError.ErrorCode REVIEW
An error occurred in the Review Screen. Check the message for details.
public static final GiniVisionError.ErrorCode DOCUMENT_IMPORT
An error occurred while a document was imported from the device. Check the messages for details.
public static final GiniVisionError.ErrorCode ANALYSIS
An error occurred in the Analysis Screen. Check the message for details.
public static GiniVisionError.ErrorCode[] values()
public static GiniVisionError.ErrorCode valueOf(java.lang.String name)