Class DecryptionException
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Exception thrown when decryption operations fail.
public sealed class DecryptionException : EncryptionException, ISerializable
- Inheritance
-
DecryptionException
- Implements
- Inherited Members
Remarks
This exception is thrown when decryption fails due to invalid ciphertext, authentication tag verification failure, or key-related issues. Error messages intentionally avoid exposing sensitive details to prevent information leakage.
Constructors
DecryptionException()
Initializes a new instance of the DecryptionException class.
public DecryptionException()
DecryptionException(string)
Initializes a new instance of the DecryptionException class with a message.
public DecryptionException(string message)
Parameters
messagestringThe message that describes the error.
DecryptionException(string, EncryptionErrorCode)
Initializes a new instance of the DecryptionException class with a message and error code.
public DecryptionException(string message, EncryptionErrorCode errorCode)
Parameters
messagestringThe message that describes the error.
errorCodeEncryptionErrorCodeThe specific error code for this decryption failure.
DecryptionException(string, Exception)
Initializes a new instance of the DecryptionException class with a message and inner exception.
public DecryptionException(string message, Exception innerException)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe underlying cause of the failure.
DecryptionException(string, Exception, EncryptionErrorCode)
Initializes a new instance of the DecryptionException class with a message, inner exception, and error code.
public DecryptionException(string message, Exception innerException, EncryptionErrorCode errorCode)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe underlying cause of the failure.
errorCodeEncryptionErrorCodeThe specific error code for this decryption failure.