to top
Datalogic APIs
public class

DecodeException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.datalogic.decode.DecodeException

Class Overview

DecodeException is used for decoder related errors.

Summary

Constants
int BARCODE_SERVICE_ERROR It is a Barcode Service error.
int DECODER_BUSY_ERROR The scan engine is busy, cannot accept commands.
int DECODER_CANNOT_START A scan session cannot be started because a condition is not met.
int DECODER_NOT_AVAILABLE_ERROR The scan engine is not initialized or not connected.
int GENERIC_ERROR Generic error, mostly due to a wrong parameter passed to a SDK method.
int LISTENER_ERROR The Scanner Service cannot register or unregister the required listener.
int NULL_POINTER_ERROR It is a null pointer error.
int REMOTE_CALL_ERROR When it's not possible to call Datalogic service.
int SUCCESS Success constant.
Fields
public int error_number The error number returned by the Decoding Subsystem.
Public Constructors
DecodeException()
Constructs a DecodeException object.
DecodeException(DecodeException ex)
Constructs a DecodeException object.
DecodeException(String s)
Constructs a DecodeException object that takes a String parameter containing the reason the exception was thrown.
DecodeException(String s, int number)
Constructs a DecodeException object that takes a String parameter containing the reason the exception was thrown.
DecodeException(int number)
Constructs a DecodeException object that takes a String parameter containing the reason the exception was thrown.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final int BARCODE_SERVICE_ERROR

Added in revision 1

It is a Barcode Service error.

Constant Value: -65536 (0xffff0000)

public static final int DECODER_BUSY_ERROR

Added in revision 1

The scan engine is busy, cannot accept commands.

Constant Value: -65532 (0xffff0004)

public static final int DECODER_CANNOT_START

Added in revision 1

A scan session cannot be started because a condition is not met.

Constant Value: -65530 (0xffff0006)

public static final int DECODER_NOT_AVAILABLE_ERROR

Added in revision 1

The scan engine is not initialized or not connected.

Constant Value: -65531 (0xffff0005)

public static final int GENERIC_ERROR

Added in revision 1

Generic error, mostly due to a wrong parameter passed to a SDK method.

Constant Value: -65534 (0xffff0002)

public static final int LISTENER_ERROR

Added in revision 14

The Scanner Service cannot register or unregister the required listener.

Constant Value: -65529 (0xffff0007)

public static final int NULL_POINTER_ERROR

Added in revision 1

It is a null pointer error.

Constant Value: -65535 (0xffff0001)

public static final int REMOTE_CALL_ERROR

Added in revision 1

When it's not possible to call Datalogic service.

Constant Value: -65533 (0xffff0003)

public static final int SUCCESS

Added in revision 1

Success constant.

Constant Value: 0 (0x00000000)

Fields

public int error_number

Added in revision 1

The error number returned by the Decoding Subsystem.

Public Constructors

public DecodeException ()

Added in revision 1

Constructs a DecodeException object.

public DecodeException (DecodeException ex)

Added in revision 1

Constructs a DecodeException object.

Parameters
ex A DecodeException with an existing error code set.

public DecodeException (String s)

Added in revision 1

Constructs a DecodeException object that takes a String parameter containing the reason the exception was thrown.

Parameters
s String indicating why the exception occurred.

public DecodeException (String s, int number)

Added in revision 1

Constructs a DecodeException object that takes a String parameter containing the reason the exception was thrown.

Parameters
s String indicating why the exception occurred.
number int representing the error code number.

public DecodeException (int number)

Added in revision 1

Constructs a DecodeException object that takes a String parameter containing the reason the exception was thrown.

Parameters
number int representing the error code number.