Docs
Tenantry ProAPI reference

AuditStoreException class

Namespace: Tenantry.Pro.EfCore · Package: Tenantry.Pro.EfCore · API reference

Thrown from SaveChanges, or from a transaction's commit, when IAuditStore failed to write the entries of changes that were saved, with AuditOptions.OnStoreFailure set to AuditStoreFailureBehavior.Throw.

The changes are saved, and committed unless they were saved in a transaction that is still open (one begun outside an audited context and handed to it with UseTransaction): do not save them again. Write AuditStoreException.Entries somewhere else, or retry the store.

public sealed class AuditStoreException : Exception, ISerializable

Inherits Exception.

Implements ISerializable.

Constructors

AuditStoreException(IReadOnlyList<AuditEntry>, Exception)

Initialises a new instance of AuditStoreException.

public AuditStoreException(IReadOnlyList<AuditEntry> entries, Exception innerException)

Parameters:

  • entries IReadOnlyList<AuditEntry>: The entries that were not written.
  • innerException Exception: The store's failure, or an AggregateException of several.

Properties

Entries

The entries that were not written, in the order they were saved.

public IReadOnlyList<AuditEntry> Entries { get; }

Value: IReadOnlyList<AuditEntry>

On this page