public class

ConfigException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.datalogic.device.configuration.ConfigException

Class Overview

ConfigException is used for configuration related errors.

Summary

Constants
int ACCESS_VIOLATION_ERROR The property is read only.
int APPLY_FAILED The application to the device of the configuration failed.
int BARCODE_SERVICE_ERROR It is a Barcode Service error.
int COMMIT_ERROR An error occurred while saving the configuration.
int DECODER_BUSY_ERROR The scan engine is busy, cannot accept commands.
int DUPLICATE_NAME_ERROR The specified name is already in use.
int GENERIC_ERROR Generic error, mostly due to a wrong parameter passed to a SDK method.
int ID_ERROR Parameter identifier is not supported.
int JSON_ERROR The JSON configuration file has an error.
int JSON_NOT_FOUND The JSON resource file was not found.
int NOT_FOUND_ERROR The specified object is not found.
int NULL_POINTER_ERROR It is a null pointer error.
int OVERLAPPING_RULE_ERROR There is a defined rule with an application context that overlaps with that of the rule.
int PROFILE_ALREADY_LOADED_ERROR There is already a manually loaded profile.
int REMOTE_CALL_ERROR When it's not possible to call Datalogic service.
int REVERT_FAILED The application to the device of the configuration failed.
int SAVE_PROFILE_ERROR Error saving the json file.
int SERVICE_NOT_AVAILABLE Database not accesible.
int SPECIFIC_APPLY_FAILED The apply on the specific service failed.
int STORE_FAILED Store on database failed.
int SUCCESS Success constant.
int SUPPORT_ERROR The property is not supported.
int VALUE_ERROR Parameter value is wrong.
Fields
public int[] bad_id_buffer The buffer of parameters IDs that caused error, returned by the Configuration Subsystem.
public int bad_id_length The length of bad_id_buffer returned by the Configuration Subsystem.
public int error_number The error number returned by the Configuration Subsystem.
Public Constructors
ConfigException()
Constructs a ConfigException object.
ConfigException(ConfigException ex)
Constructs a ConfigException object.
ConfigException(String s)
Constructs a ConfigException object that takes a String parameter containing the reason the exception was thrown.
ConfigException(String s, int number)
Constructs a ConfigException object that takes a String parameter containing the reason the exception was thrown.
ConfigException(int number)
Constructs a ConfigException object that takes a String parameter containing the reason the exception was thrown.
ConfigException(String s, int[] id_buff, int buff_length)
Constructs a ConfigException 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 ACCESS_VIOLATION_ERROR

Added in revision 29

The property is read only.

Constant Value: -131056 (0xfffe0010)

public static final int APPLY_FAILED

Added in revision 27

The application to the device of the configuration failed. A revert to the previous permanent configuration was done.

Constant Value: -131061 (0xfffe000b)

public static final int BARCODE_SERVICE_ERROR

Added in revision 1

It is a Barcode Service error.

Constant Value: -131072 (0xfffe0000)

public static final int COMMIT_ERROR

Added in revision 1

An error occurred while saving the configuration.

Constant Value: -131066 (0xfffe0006)

public static final int DECODER_BUSY_ERROR

Added in revision 1

The scan engine is busy, cannot accept commands.

Constant Value: -131065 (0xfffe0007)

public static final int DUPLICATE_NAME_ERROR

Added in revision 32

The specified name is already in use.

Constant Value: -131055 (0xfffe0011)

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: -131070 (0xfffe0002)

public static final int ID_ERROR

Added in revision 1

Parameter identifier is not supported.

Constant Value: -131068 (0xfffe0004)

public static final int JSON_ERROR

Added in revision 27

The JSON configuration file has an error.

Constant Value: -131063 (0xfffe0009)

public static final int JSON_NOT_FOUND

Added in revision 27

The JSON resource file was not found.

Constant Value: -131062 (0xfffe000a)

public static final int NOT_FOUND_ERROR

Added in revision 32

The specified object is not found.

Constant Value: -131052 (0xfffe0014)

public static final int NULL_POINTER_ERROR

Added in revision 1

It is a null pointer error.

Constant Value: -131071 (0xfffe0001)

public static final int OVERLAPPING_RULE_ERROR

Added in revision 32

There is a defined rule with an application context that overlaps with that of the rule.

Constant Value: -131053 (0xfffe0013)

public static final int PROFILE_ALREADY_LOADED_ERROR

Added in revision 32

There is already a manually loaded profile.

Constant Value: -131051 (0xfffe0015)

public static final int REMOTE_CALL_ERROR

Added in revision 1

When it's not possible to call Datalogic service.

Constant Value: -131069 (0xfffe0003)

public static final int REVERT_FAILED

Added in revision 27

The application to the device of the configuration failed. A revert to the previous permanent configuration failed. The configuration can be inconsistent. A reboot is suggested.

Constant Value: -131060 (0xfffe000c)

public static final int SAVE_PROFILE_ERROR

Added in revision 32

Error saving the json file.

Constant Value: -131054 (0xfffe0012)

public static final int SERVICE_NOT_AVAILABLE

Added in revision 27

Database not accesible.

Constant Value: -131058 (0xfffe000e)

public static final int SPECIFIC_APPLY_FAILED

Added in revision 27

The apply on the specific service failed.

Constant Value: -131057 (0xfffe000f)

public static final int STORE_FAILED

Added in revision 27

Store on database failed.

Constant Value: -131059 (0xfffe000d)

public static final int SUCCESS

Added in revision 1

Success constant.

Constant Value: 0 (0x00000000)

public static final int SUPPORT_ERROR

Added in revision 5

The property is not supported.

Constant Value: -131064 (0xfffe0008)

public static final int VALUE_ERROR

Added in revision 1

Parameter value is wrong.

Constant Value: -131067 (0xfffe0005)

Fields

public int[] bad_id_buffer

Added in revision 1

The buffer of parameters IDs that caused error, returned by the Configuration Subsystem. Only if bad_id_length > 0, bad_id_buffer is meaningful.

public int bad_id_length

Added in revision 1

The length of bad_id_buffer returned by the Configuration Subsystem.

public int error_number

Added in revision 1

The error number returned by the Configuration Subsystem.

Public Constructors

public ConfigException ()

Added in revision 1

Constructs a ConfigException object.

public ConfigException (ConfigException ex)

Added in revision 1

Constructs a ConfigException object.

Parameters
ex A ConfigException with an existing error code set.

public ConfigException (String s)

Added in revision 1

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

Parameters
s String indicating why the exception occurred.

public ConfigException (String s, int number)

Added in revision 1

Constructs a ConfigException 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 ConfigException (int number)

Added in revision 1

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

Parameters
number int representing the error code number.

public ConfigException (String s, int[] id_buff, int buff_length)

Added in revision 1

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

Parameters
s String indicating why the exception occurred.
id_buff A int[] containing all the IDs that generated an error.
buff_length int size of the array.