Package com.bld.crypto.exception
Class CryptoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.bld.crypto.exception.CryptoException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructs a newCryptoExceptionwith no detail message.CryptoException(String message) Constructs a newCryptoExceptionwith the specified detail message.CryptoException(String message, Throwable cause) Constructs a newCryptoExceptionwith the specified detail message and cause.CryptoException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a newCryptoExceptionwith the specified detail message, cause, suppression flag, and writable stack trace flag.CryptoException(Throwable cause) Constructs a newCryptoExceptionwith the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CryptoException
public CryptoException()Constructs a newCryptoExceptionwith no detail message. -
CryptoException
public CryptoException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs a newCryptoExceptionwith the specified detail message, cause, suppression flag, and writable stack trace flag.- Parameters:
message- the detail messagecause- the cause of this exceptionenableSuppression- whether suppression is enabled or disabledwritableStackTrace- whether the stack trace should be writable
-
CryptoException
Constructs a newCryptoExceptionwith the specified detail message and cause.- Parameters:
message- the detail messagecause- the cause of this exception
-
CryptoException
Constructs a newCryptoExceptionwith the specified detail message.- Parameters:
message- the detail message
-
CryptoException
Constructs a newCryptoExceptionwith the specified cause.- Parameters:
cause- the cause of this exception
-