Class BarcodeException

  • All Implemented Interfaces:
    java.io.Serializable

    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@.

    Version:
    1.0, 28/08/2020.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field 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 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
      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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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.