Package es.gob.afirma.mreport.exceptions
Class BarcodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- es.gob.afirma.mreport.exceptions.BarcodeException
-
- All Implemented Interfaces:
java.io.Serializable
public class BarcodeException extends java.lang.ExceptionClass 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@.
- Version:
- 1.0, 28/08/2020.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intINVALID_INPUT_PARAMETERSAttribute that represents the code that indicates that input parameters are invalid.static intUNKNOWN_ERRORAttribute that represents the code associated to unknown error.
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Gets the value of the attribute that identifies the error type occurred.java.lang.StringgetDescription()Gets the value of the error description.voidsetCode(int codeId)Sets the value of the attribute that identifies the error type occurred.voidsetDescription(java.lang.String message)Sets the value of the error description.
-
-
-
Field Detail
-
UNKNOWN_ERROR
public static final int UNKNOWN_ERROR
Attribute that represents the code associated to unknown error.- See Also:
- Constant Field Values
-
INVALID_INPUT_PARAMETERS
public static final int INVALID_INPUT_PARAMETERS
Attribute that represents the code that indicates that input parameters are invalid.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BarcodeException
public BarcodeException(int codeId, java.lang.String message)Constructor method for the class ReportException.java.- Parameters:
codeId- Identifier of error.message- Error description.
-
BarcodeException
public BarcodeException(int codeId, java.lang.String message, java.lang.Throwable cause)Constructor method for the class ReportException.java.- Parameters:
codeId- Identifier of error.message- Error description.cause- Error cause.
-
-
Method Detail
-
getCode
public int getCode()
Gets the value of the attribute that identifies the error type occurred.- Returns:
- the value of the attribute that identifies the error type occurred.
-
setCode
public void setCode(int codeId)
Sets the value of the attribute that identifies the error type occurred.- Parameters:
codeId- The value for the attribute that identifies the error type occurred.
-
getDescription
public java.lang.String getDescription()
Gets the value of the error description.- Returns:
- the value of the error description.
-
setDescription
public void setDescription(java.lang.String message)
Sets the value of the error description.- Parameters:
message- The value for the error description.
-
-