Table of Contents

Class ErasureOperationException

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

Exception thrown when an erasure operation fails.

public sealed class ErasureOperationException : ApiException, ISerializable
Inheritance
ErasureOperationException
Implements
Inherited Members

Constructors

ErasureOperationException()

Initializes a new instance of the ErasureOperationException class.

public ErasureOperationException()

ErasureOperationException(string)

Initializes a new instance of the ErasureOperationException class with a message.

public ErasureOperationException(string message)

Parameters

message string

The error message.

ErasureOperationException(string, Exception?)

Initializes a new instance of the ErasureOperationException class with a message and inner exception.

public ErasureOperationException(string message, Exception? innerException)

Parameters

message string

The error message.

innerException Exception

The inner exception.

Properties

Reason

Gets or sets the reason for the failure.

public ErasureFailureReason Reason { get; init; }

Property Value

ErasureFailureReason

RequestId

Gets or sets the request ID associated with the failed operation.

public Guid? RequestId { get; init; }

Property Value

Guid?

Methods

BlockedByLegalHold(Guid, Guid, string)

Creates an exception for a legal hold block.

public static ErasureOperationException BlockedByLegalHold(Guid requestId, Guid holdId, string caseReference)

Parameters

requestId Guid
holdId Guid
caseReference string

Returns

ErasureOperationException

KeyDeletionFailed(Guid, string, Exception?)

Creates an exception for a key deletion failure.

public static ErasureOperationException KeyDeletionFailed(Guid requestId, string keyId, Exception? inner = null)

Parameters

requestId Guid
keyId string
inner Exception

Returns

ErasureOperationException

ValidationFailed(Guid, string)

Creates an exception for a validation failure.

public static ErasureOperationException ValidationFailed(Guid requestId, string message)

Parameters

requestId Guid
message string

Returns

ErasureOperationException

VerificationFailed(Guid, string)

Creates an exception for a verification failure.

public static ErasureOperationException VerificationFailed(Guid requestId, string message)

Parameters

requestId Guid
message string

Returns

ErasureOperationException