public class DecodeException
extends java.lang.RuntimeException
DecodeException is used for decoder related errors.| Modifier and Type | Field and Description |
|---|---|
static int |
BARCODE_SERVICE_ERROR
It is a Barcode Service error.
|
static int |
DECODER_BUSY_ERROR
The scan engine is busy, cannot accept commands.
|
static int |
DECODER_CANNOT_START
A scan session cannot be started because a condition is not met.
|
static int |
DECODER_NOT_AVAILABLE_ERROR
The scan engine is not initialized or not connected.
|
int |
error_number
The error number returned by the Decoding Subsystem.
|
static int |
GENERIC_ERROR
Generic error, mostly due to a wrong parameter passed to a SDK method.
|
static int |
LISTENER_ERROR
The Scanner Service cannot register or unregister the required listener.
|
static int |
NULL_POINTER_ERROR
It is a null pointer error.
|
static int |
REMOTE_CALL_ERROR
When it's not possible to call Datalogic service.
|
static int |
SUCCESS
Success constant.
|
| Constructor and Description |
|---|
DecodeException()
Constructs a DecodeException object.
|
DecodeException(DecodeException ex)
Constructs a DecodeException object.
|
DecodeException(int number)
Constructs a DecodeException object that takes a
String parameter containing the reason the exception was
thrown. |
DecodeException(java.lang.String s)
Constructs a DecodeException object that takes a
String parameter containing the reason the exception was
thrown. |
DecodeException(java.lang.String s,
int number)
Constructs a DecodeException object that takes a
String parameter containing the reason the exception was
thrown. |
public static final int SUCCESS
public static final int BARCODE_SERVICE_ERROR
public static final int NULL_POINTER_ERROR
public static final int GENERIC_ERROR
public static final int REMOTE_CALL_ERROR
public static final int DECODER_BUSY_ERROR
public static final int DECODER_NOT_AVAILABLE_ERROR
public static final int DECODER_CANNOT_START
public static final int LISTENER_ERROR
public int error_number
public DecodeException()
public DecodeException(DecodeException ex)
ex - A DecodeException with an existing error code set.public DecodeException(java.lang.String s)
String parameter containing the reason the exception was
thrown.s - String indicating why the exception occurred.public DecodeException(java.lang.String s,
int number)
String parameter containing the reason the exception was
thrown.s - String indicating why the exception occurred.number - int representing the error code number.public DecodeException(int number)
String parameter containing the reason the exception was
thrown.number - int representing the error code number.