Table of Contents

Class EncryptionException

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Represents errors that occur during encryption or decryption operations.

public class EncryptionException : ApiException, ISerializable
Inheritance
EncryptionException
Implements
Derived
Inherited Members

Remarks

Error messages intentionally avoid exposing sensitive details like key IDs or ciphertext to prevent information leakage in logs.

Constructors

EncryptionException()

Initializes a new instance of the EncryptionException class.

public EncryptionException()

EncryptionException(string)

Initializes a new instance of the EncryptionException class with a specified error message.

public EncryptionException(string message)

Parameters

message string

The message that describes the error.

EncryptionException(string, Exception)

Initializes a new instance of the EncryptionException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public EncryptionException(string message, Exception innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception.

Properties

ErrorCode

Gets or sets the error code for categorizing encryption failures.

public EncryptionErrorCode ErrorCode { get; init; }

Property Value

EncryptionErrorCode