Package org.digidoc4j.exceptions
Class DigiDoc4JException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.digidoc4j.exceptions.DigiDoc4JException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CertificateNotFoundException
,CertificateRevokedException
,ConfigurationException
,ContainerWithoutFilesException
,DataFileMissingException
,DataFileNotFoundException
,DuplicateDataFileException
,DuplicateSignatureFilesException
,DuplicateTimestampException
,IllegalContainerContentException
,IllegalSignatureProfileException
,IllegalTimestampException
,InvalidDataFileException
,InvalidKeyException
,InvalidOcspNonceException
,InvalidOcspResponderException
,InvalidSignatureException
,InvalidTimemarkSignatureException
,InvalidTimestampException
,LotlTrustStoreNotFoundException
,MultipleSignedPropertiesException
,NonExtendableSignatureException
,NotSupportedException
,NotYetImplementedException
,OCSPRequestFailedException
,RemovingDataFileException
,RemovingTimestampException
,SignatureNotFoundException
,SignatureTokenMissingException
,SignedPropertiesMissingException
,SignedWithExpiredCertificateException
,SignerCertificateRequiredException
,TechnicalException
,TimestampAfterOCSPResponseTimeException
,TimestampAndOcspResponseTimeDeltaTooLargeException
,TimestampNotFoundException
,TslCertificateSourceInitializationException
,UnsupportedFormatException
,UntrustedRevocationSourceException
,WrongPolicyIdentifierException
,WrongPolicyIdentifierQualifierException
Generic exception for DigiDoc4J
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDigiDoc4JException
(int error, String message) Constructs a new runtime exception with the specified detail message and cause.Creates new exception based on another exceptionDigiDoc4JException
(String message) Constructs a new runtime exception with the specified detail message and cause.DigiDoc4JException
(String message, String signatureId) Constructs a new runtime exception with the specified detail message, signature ID and cause.DigiDoc4JException
(String message, Throwable cause) Constructs a new runtime exception with the specified detail message and cause.Creates new exception based on another exception -
Method Summary
Modifier and TypeMethodDescriptionint
Get the error code of the exceptionGet the Signature Id of the exceptionvoid
setSignatureId
(String signatureId) Set the Signature Id of the exceptiontoString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DigiDoc4JException
Constructs a new runtime exception with the specified detail message and cause.Note that the detail message associated with
cause
is not automatically incorporated in this runtime exception's detail message.- Parameters:
error
- - error codemessage
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).
-
DigiDoc4JException
Constructs a new runtime exception with the specified detail message and cause.Note that the detail message associated with
cause
is not automatically incorporated in this runtime exception's detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).cause
- cause of exception
-
DigiDoc4JException
Constructs a new runtime exception with the specified detail message and cause.Note that the detail message associated with
cause
is not automatically incorporated in this runtime exception's detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).
-
DigiDoc4JException
Constructs a new runtime exception with the specified detail message, signature ID and cause.Note that the detail message associated with
cause
is not automatically incorporated in this runtime exception's detail message.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method).signatureId
- - Signature ID
-
DigiDoc4JException
Creates new exception based on another exception- Parameters:
e
- parent exception
-
DigiDoc4JException
Creates new exception based on another exception- Parameters:
e
- parent exception
-
DigiDoc4JException
public DigiDoc4JException()
-
-
Method Details
-
getErrorCode
public int getErrorCode()Get the error code of the exception- Returns:
- error code
-
getSignatureId
Get the Signature Id of the exception- Returns:
- id of signature
-
setSignatureId
Set the Signature Id of the exception- Parameters:
signatureId
- id of signature
-
toString
-