Package es.gob.afirma.mreport.exceptions
Class UtilsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- es.gob.afirma.mreport.exceptions.UtilsException
-
- All Implemented Interfaces:
java.io.Serializable
public class UtilsException extends java.lang.ExceptionClass 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 intACCESS_FILE_ERRORAttribute that represents that an error occurs while the system access to a file.static intINVALID_CONCATENATION_RULEAttribute that represents the concatenation rule isn't valid.static intINVALID_FO_FILEAttribute that represents the document is not a valid XSL-FO file.static intINVALID_ODF_FILEAttribute that represents the document isn't a valid ODF.static intINVALID_PAGE_NUMBERAttribute that represents the error code associated to invalid number of page.static intINVALID_PDF_FILEAttribute that represents the file supplied is not valid PDF.static intINVALID_ROTATED_ANGLEAttribute that represents the rotated angle is not allow.static intINVALID_SIGNATUREAttribute that represents the code associated to a invalid signature.static intOPERATION_NOT_ALLOWEDAttribute that represents the operation is not allowed.static intUNKNOWN_ERRORAttribute that represents the code associated to unknown error.static intXML_PARSER_ERRORAttribute that represents the code associated to XML parser error.static intXPATH_ERRORAttribute that represents the code associated to an error while search by XPATH.static intXSL_TRANSFORM_ERRORAttribute 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 intgetCode()Gets the value of the attribute 'code'.java.lang.StringgetDescription()Gets the value of the attribute 'description'.voidsetCode(int code)Sets the value of the attribute 'code'.voidsetDescription(java.lang.String description)Sets the value of the attribute '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
-
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'.
-
-