Class ErasureStoreNotProvisionedException
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Thrown when an erasure store's backing schema is absent, or is present but missing columns the store's statements bind.
public sealed class ErasureStoreNotProvisionedException : ApiException, ISerializable
- Inheritance
-
ErasureStoreNotProvisionedException
- Implements
- Inherited Members
Remarks
This is a deployment fault, not an operation outcome. Nothing the caller passed is wrong and no retry, backoff, or alternative identifier will clear it — the database has not been provisioned, or was provisioned before columns this version binds were introduced. The remedy is to run the shipped migration scripts and restart.
It deliberately sits outside the InvalidOperationException hierarchy. A store that reported a provisioning fault as InvalidOperationException would be indistinguishable, to a caller, from DuplicateErasureRequestException — so an unprovisioned store would be read as "this erasure request is already on file", and every request filed against it would be silently discarded by a caller behaving correctly.
A hosted application should never observe this at all: the erasure schema-validation hosted service verifies the schema during startup, so a mis-provisioned deployment fails to start rather than failing one write at a time. This exception is the fail-closed floor for consumers that never run that hosted service — a store constructed directly, or a serverless host with no startup pipeline.
Constructors
ErasureStoreNotProvisionedException()
Initializes a new instance of the ErasureStoreNotProvisionedException class.
public ErasureStoreNotProvisionedException()
ErasureStoreNotProvisionedException(string)
Initializes a new instance of the ErasureStoreNotProvisionedException class with a message.
public ErasureStoreNotProvisionedException(string message)
Parameters
messagestringThe error message, naming the table and any missing columns.
ErasureStoreNotProvisionedException(string, Exception?)
Initializes a new instance of the ErasureStoreNotProvisionedException class with a message and inner exception.
public ErasureStoreNotProvisionedException(string message, Exception? innerException)
Parameters
messagestringThe error message, naming the table and any missing columns.
innerExceptionExceptionThe underlying failure encountered while inspecting the schema.
Properties
TableName
Gets the name of the table whose absence or shape caused the failure, when a single table is at fault.
public string? TableName { get; init; }