public class BarcodeException
extends java.lang.Exception
Class that provides information about an error that occurred during the processing of bar codes.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID_INPUT_PARAMETERS
Attribute that represents the code that indicates that input parameters are invalid.
|
static int |
UNKNOWN_ERROR
Attribute that represents the code associated to unknown error.
|
| Constructor and Description |
|---|
BarcodeException(int codeId,
java.lang.String message)
Constructor method for the class ReportException.java.
|
BarcodeException(int codeId,
java.lang.String message,
java.lang.Throwable cause)
Constructor method for the class ReportException.java.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Gets the value of the attribute that identifies the error type occurred.
|
java.lang.String |
getDescription()
Gets the value of the error description.
|
void |
setCode(int codeId)
Sets the value of the attribute that identifies the error type occurred.
|
void |
setDescription(java.lang.String message)
Sets the value of the error description.
|
public static final int UNKNOWN_ERROR
public static final int INVALID_INPUT_PARAMETERS
public BarcodeException(int codeId,
java.lang.String message)
codeId - Identifier of error.message - Error description.public BarcodeException(int codeId,
java.lang.String message,
java.lang.Throwable cause)
codeId - Identifier of error.message - Error description.cause - Error cause.public int getCode()
public void setCode(int codeId)
codeId - The value for the attribute that identifies the error type occurred.public java.lang.String getDescription()
public void setDescription(java.lang.String message)
message - The value for the error description.