Package es.gob.afirma.mreport.exceptions
Class SignatureReportException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- es.gob.afirma.mreport.exceptions.SignatureReportException
-
- All Implemented Interfaces:
java.io.Serializable
public class SignatureReportException extends java.lang.ExceptionClass that contains information about an error occurred while generating a signature report.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 19/08/2020.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intAFIRMA_INVOKER_ERRORAttribute that represents an error while invoking to '@firma'.static intDOCUMENT_PROCESS_ERRORAttribute that represents an error while processing signed data.static intINVALID_INPUT_PARAMETERSAttribute that represents that the input parameters supplied to manager are invalid.static intINVALID_PLATFORM_IDAttribute that represents that not found platform with identifier supplied.static intINVALID_SOAP_SIGNATUREAttribute that indicates the SOAP signature is not valid.static intINVALID_TEMPLATEAttribute that represents the template is not valid.static intNOT_SUPPORTEDAttribute that represents the operation is not supported.static intSIGNATURE_PROCESS_ERRORAttribute that represents an error while processing signature.static intUNKNOWN_ERRORAttribute that represents that a unknown error has occurred.static intXML_REQUEST_ERRORAttribute that represents an error while creating XML request.static intXML_RESPONSE_ERRORAttribute that represents an error while reading XML response.
-
Constructor Summary
Constructors Constructor Description SignatureReportException(int errorCode, java.lang.String message)Constructor method for the class SignatureManagerException.java.SignatureReportException(int errorCode, java.lang.String message, java.lang.Throwable errorCause)Constructor method for the class SignatureManagerException.java.SignatureReportException(java.lang.String message, java.lang.Throwable cause)Constructor method for the class SignatureManagerException.java.SignatureReportException(java.lang.Throwable cause)Constructor method for the class SignatureManagerException.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 errorCode)Sets the value of the attribute 'code'.voidsetDescription(java.lang.String message)Sets the value of the attribute 'description'.
-
-
-
Field Detail
-
UNKNOWN_ERROR
public static final int UNKNOWN_ERROR
Attribute that represents that a unknown error has occurred.- See Also:
- Constant Field Values
-
INVALID_PLATFORM_ID
public static final int INVALID_PLATFORM_ID
Attribute that represents that not found platform with identifier supplied.- See Also:
- Constant Field Values
-
NOT_SUPPORTED
public static final int NOT_SUPPORTED
Attribute that represents the operation is not supported.- See Also:
- Constant Field Values
-
SIGNATURE_PROCESS_ERROR
public static final int SIGNATURE_PROCESS_ERROR
Attribute that represents an error while processing signature.- See Also:
- Constant Field Values
-
INVALID_INPUT_PARAMETERS
public static final int INVALID_INPUT_PARAMETERS
Attribute that represents that the input parameters supplied to manager are invalid.- See Also:
- Constant Field Values
-
DOCUMENT_PROCESS_ERROR
public static final int DOCUMENT_PROCESS_ERROR
Attribute that represents an error while processing signed data.- See Also:
- Constant Field Values
-
XML_REQUEST_ERROR
public static final int XML_REQUEST_ERROR
Attribute that represents an error while creating XML request.- See Also:
- Constant Field Values
-
AFIRMA_INVOKER_ERROR
public static final int AFIRMA_INVOKER_ERROR
Attribute that represents an error while invoking to '@firma'.- See Also:
- Constant Field Values
-
XML_RESPONSE_ERROR
public static final int XML_RESPONSE_ERROR
Attribute that represents an error while reading XML response.- See Also:
- Constant Field Values
-
INVALID_SOAP_SIGNATURE
public static final int INVALID_SOAP_SIGNATURE
Attribute that indicates the SOAP signature is not valid.- See Also:
- Constant Field Values
-
INVALID_TEMPLATE
public static final int INVALID_TEMPLATE
Attribute that represents the template is not valid.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SignatureReportException
public SignatureReportException(java.lang.Throwable cause)
Constructor method for the class SignatureManagerException.java.- Parameters:
cause- Error cause.
-
SignatureReportException
public SignatureReportException(int errorCode, java.lang.String message)Constructor method for the class SignatureManagerException.java.- Parameters:
errorCode- Error code.message- Parameter that represents a description of error.
-
SignatureReportException
public SignatureReportException(java.lang.String message, java.lang.Throwable cause)Constructor method for the class SignatureManagerException.java.- Parameters:
message- Error message.cause- Error cause.
-
SignatureReportException
public SignatureReportException(int errorCode, java.lang.String message, java.lang.Throwable errorCause)Constructor method for the class SignatureManagerException.java.- Parameters:
errorCode- Error code.message- Parameter that represents a description of error.errorCause- 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 errorCode)
Sets the value of the attribute 'code'.- Parameters:
errorCode- 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 message)
Sets the value of the attribute 'description'.- Parameters:
message- The value for the attribute 'description'.
-
-