Class 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

public class DigiDoc4JException extends RuntimeException
Generic exception for DigiDoc4J
See Also:
  • Constructor Details

    • DigiDoc4JException

      public DigiDoc4JException(int error, String message)
      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 code
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
    • DigiDoc4JException

      public DigiDoc4JException(String message, Throwable cause)
      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 the Throwable.getMessage() method).
      cause - cause of exception
    • DigiDoc4JException

      public DigiDoc4JException(String message)
      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 the Throwable.getMessage() method).
    • DigiDoc4JException

      public DigiDoc4JException(String message, String signatureId)
      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 the Throwable.getMessage() method).
      signatureId - - Signature ID
    • DigiDoc4JException

      public DigiDoc4JException(Throwable e)
      Creates new exception based on another exception
      Parameters:
      e - parent exception
    • DigiDoc4JException

      public DigiDoc4JException(Exception e)
      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

      public String getSignatureId()
      Get the Signature Id of the exception
      Returns:
      id of signature
    • setSignatureId

      public void setSignatureId(String signatureId)
      Set the Signature Id of the exception
      Parameters:
      signatureId - id of signature
    • toString

      public String toString()
      Overrides:
      toString in class Throwable