public class ErrorManager
extends java.lang.Object
ConfigException,
DecodeException,
DeviceException| Constructor and Description |
|---|
ErrorManager() |
| Modifier and Type | Method and Description |
|---|---|
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 java.util.List<java.lang.Exception> |
getErrors()
Provides a List containing all the errors occurred,
since the last
clearErrors() invocation. |
static java.lang.Exception |
getLastError()
Provides more informations regarding the last error occurred.
|
public static int enableExceptions(boolean enable)
enable - It specifies whether or not the custom Exception will be thrown.int
In case of success DeviceException.SUCCESS is returned.ConfigException,
DecodeException,
DeviceExceptionpublic static boolean areExceptionsEnabled()
boolean It returns whether or not the exception mechanism is enabled.public static java.lang.Exception getLastError()
ConfigException or DecodeException or DeviceException. Null
in case of no known exception occurred.ConfigException,
DecodeException,
DeviceExceptionpublic static java.util.List<java.lang.Exception> getErrors()
clearErrors() invocation.ConfigException or DecodeException or DeviceException.ConfigException,
DecodeException,
DeviceExceptionpublic static int clearErrors()
int
In case of success DeviceException.SUCCESS is returned.