Class CryptoException

All Implemented Interfaces:
Serializable

public class CryptoException extends RuntimeException
Unchecked exception thrown whenever a cryptographic operation fails inside the common-encryption module.

This exception wraps lower-level checked exceptions (e.g. GeneralSecurityException, IOException) so that callers do not have to declare checked exceptions on every method that performs encryption or decryption.

See Also:
  • Constructor Details

    • CryptoException

      public CryptoException()
      Constructs a new CryptoException with no detail message.
    • CryptoException

      public CryptoException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      Constructs a new CryptoException with the specified detail message, cause, suppression flag, and writable stack trace flag.
      Parameters:
      message - the detail message
      cause - the cause of this exception
      enableSuppression - whether suppression is enabled or disabled
      writableStackTrace - whether the stack trace should be writable
    • CryptoException

      public CryptoException(String message, Throwable cause)
      Constructs a new CryptoException with the specified detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause of this exception
    • CryptoException

      public CryptoException(String message)
      Constructs a new CryptoException with the specified detail message.
      Parameters:
      message - the detail message
    • CryptoException

      public CryptoException(Throwable cause)
      Constructs a new CryptoException with the specified cause.
      Parameters:
      cause - the cause of this exception