public class

ErrorManager

extends Object
java.lang.Object
   ↳ com.datalogic.device.ErrorManager

Class Overview

This class provides access to error configuration related methods of the device. Through this class, Datalogic exceptions can be enabled; otherwise the standard error notification mechanism will be used, relying on simple integer return values. Only the specific exceptions, defined by this SDK, can be controlled can be controlled by this class, standard Java Exceptions are not subject to the configuration specified by the ErrorManager.

Summary

Public Constructors
ErrorManager()
Public Methods
static boolean areExceptionsEnabled()
Tells if the error signaling mechanism, base on exceptions, is enabled.
static int clearErrors()
Clear and empty the internal buffer that is in charge to collect all the occurred errors.
static int enableExceptions(boolean enable)
Enables the exception notification system.
static List<Exception> getErrors()
Provides a List containing all the errors occurred, since the last clearErrors() invocation.
static Exception getLastError()
Provides more informations regarding the last error occurred.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ErrorManager ()

Added in revision 1

Public Methods

public static boolean areExceptionsEnabled ()

Added in revision 1

Tells if the error signaling mechanism, base on exceptions, is enabled.

Returns
  • boolean It returns whether or not the exception mechanism is enabled.

public static int clearErrors ()

Added in revision 1

Clear and empty the internal buffer that is in charge to collect all the occurred errors.

Returns
  • int In case of success SUCCESS is returned.

public static int enableExceptions (boolean enable)

Added in revision 1

Enables the exception notification system. In case of error, a specific RuntimeException will be thrown.

Parameters
enable It specifies whether or not the custom Exception will be thrown.
Returns
  • int In case of success SUCCESS is returned.

public static List<Exception> getErrors ()

Added in revision 1

Provides a List containing all the errors occurred, since the last clearErrors() invocation.

Returns

public static Exception getLastError ()

Added in revision 1

Provides more informations regarding the last error occurred.

Returns