Class UtilsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UtilsException
    extends java.lang.Exception

    Class that contains information about an error that occurred in one of the utility classes.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

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

      Fields 
      Modifier and Type Field Description
      static int ACCESS_FILE_ERROR
      Attribute that represents that an error occurs while the system access to a file.
      static int INVALID_CONCATENATION_RULE
      Attribute that represents the concatenation rule isn't valid.
      static int INVALID_FO_FILE
      Attribute that represents the document is not a valid XSL-FO file.
      static int INVALID_ODF_FILE
      Attribute that represents the document isn't a valid ODF.
      static int INVALID_PAGE_NUMBER
      Attribute that represents the error code associated to invalid number of page.
      static int INVALID_PDF_FILE
      Attribute that represents the file supplied is not valid PDF.
      static int INVALID_ROTATED_ANGLE
      Attribute that represents the rotated angle is not allow.
      static int INVALID_SIGNATURE
      Attribute that represents the code associated to a invalid signature.
      static int OPERATION_NOT_ALLOWED
      Attribute that represents the operation is not allowed.
      static int UNKNOWN_ERROR
      Attribute that represents the code associated to unknown error.
      static int XML_PARSER_ERROR
      Attribute that represents the code associated to XML parser error.
      static int XPATH_ERROR
      Attribute that represents the code associated to an error while search by XPATH.
      static int XSL_TRANSFORM_ERROR
      Attribute that represents the code associated to an error while transform by XSLT.
    • Constructor Summary

      Constructors 
      Constructor Description
      UtilsException​(int code, java.lang.String description)
      Constructor method for the class TransformException.java.
      UtilsException​(int code, java.lang.String description, java.lang.Throwable cause)
      Constructor method for the class TransformException.java.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()
      Gets the value of the attribute 'code'.
      java.lang.String getDescription()
      Gets the value of the attribute 'description'.
      void setCode​(int code)
      Sets the value of the attribute 'code'.
      void setDescription​(java.lang.String description)
      Sets the value of the attribute '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
      • XML_PARSER_ERROR

        public static final int XML_PARSER_ERROR
        Attribute that represents the code associated to XML parser error.
        See Also:
        Constant Field Values
      • XPATH_ERROR

        public static final int XPATH_ERROR
        Attribute that represents the code associated to an error while search by XPATH.
        See Also:
        Constant Field Values
      • INVALID_SIGNATURE

        public static final int INVALID_SIGNATURE
        Attribute that represents the code associated to a invalid signature.
        See Also:
        Constant Field Values
      • XSL_TRANSFORM_ERROR

        public static final int XSL_TRANSFORM_ERROR
        Attribute that represents the code associated to an error while transform by XSLT.
        See Also:
        Constant Field Values
      • INVALID_PAGE_NUMBER

        public static final int INVALID_PAGE_NUMBER
        Attribute that represents the error code associated to invalid number of page.
        See Also:
        Constant Field Values
      • INVALID_PDF_FILE

        public static final int INVALID_PDF_FILE
        Attribute that represents the file supplied is not valid PDF.
        See Also:
        Constant Field Values
      • INVALID_CONCATENATION_RULE

        public static final int INVALID_CONCATENATION_RULE
        Attribute that represents the concatenation rule isn't valid.
        See Also:
        Constant Field Values
      • ACCESS_FILE_ERROR

        public static final int ACCESS_FILE_ERROR
        Attribute that represents that an error occurs while the system access to a file.
        See Also:
        Constant Field Values
      • INVALID_ODF_FILE

        public static final int INVALID_ODF_FILE
        Attribute that represents the document isn't a valid ODF.
        See Also:
        Constant Field Values
      • OPERATION_NOT_ALLOWED

        public static final int OPERATION_NOT_ALLOWED
        Attribute that represents the operation is not allowed.
        See Also:
        Constant Field Values
      • INVALID_FO_FILE

        public static final int INVALID_FO_FILE
        Attribute that represents the document is not a valid XSL-FO file.
        See Also:
        Constant Field Values
      • INVALID_ROTATED_ANGLE

        public static final int INVALID_ROTATED_ANGLE
        Attribute that represents the rotated angle is not allow.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UtilsException

        public UtilsException​(int code,
                              java.lang.String description)
        Constructor method for the class TransformException.java.
        Parameters:
        code - Code of error.
        description - Description of error.
      • UtilsException

        public UtilsException​(int code,
                              java.lang.String description,
                              java.lang.Throwable cause)
        Constructor method for the class TransformException.java.
        Parameters:
        code - Code of error.
        description - Description of error.
        cause - Error cause.
    • Method Detail

      • getCode

        public int getCode()
        Gets the value of the attribute 'code'.
        Returns:
        the value of the attribute 'code'.
      • setCode

        public void setCode​(int code)
        Sets the value of the attribute 'code'.
        Parameters:
        code - The value for the attribute 'code'.
      • getDescription

        public java.lang.String getDescription()
        Gets the value of the attribute 'description'.
        Returns:
        the value of the attribute 'description'.
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the value of the attribute 'description'.
        Parameters:
        description - The value for the attribute 'description'.