Table of Contents

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

message string

The 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

message string

The message that describes the error.

errorCode EncryptionErrorCode

The 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

message string

The message that describes the error.

innerException Exception

The 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

message string

The message that describes the error.

innerException Exception

The underlying cause of the failure.

errorCode EncryptionErrorCode

The specific error code for this decryption failure.