Table of Contents

Class RootSettingsUnwritableException

Namespace
MailFathom.Infrastructure.Persistence.Settings
Assembly
MailFathom.Infrastructure.dll

Indicates that the database refused the statement a validated configuration write would have committed.

public sealed class RootSettingsUnwritableException : MailFathomException, ISerializable
Inheritance
RootSettingsUnwritableException
Implements
Inherited Members

Remarks

It is raised rather than returned because no caller between the statement and the administrator can decide what a refused connection, a missing privilege, or a statement that outran its bound means. A writer that turned it into a refusal beside "the value is invalid" and "somebody else won the race" would put a failure of the machinery in the same list as three outcomes an operator's own edit produced.

The deployment's configuration is unchanged when this is raised, with two exceptions, and they are the reason the rule is worth stating: the commit is one statement, so it either took effect or did not, and no reload token rises for a statement that did not — but a statement that outran its command timeout, and one whose connection broke while it was in flight, had both been accepted by the server before it stopped answering, so which of the two happened is not known from here. The message says so where it applies, and the version now in force is what settles it. A retry is safe in every case either way, because the version guard refuses one composed over a version a first attempt already moved.

The message names neither the connection, the credential, nor any part of the document. What the database actually said stays reachable as InnerException for an operator's log.

Constructors

RootSettingsUnwritableException(string, Exception)

Initializes a new failure naming what could not be written, and the provider failure that revealed it.

Properties

ErrorCode

Gets the stable code identifying this failure to a boundary that must report it without naming a type.