Class UserSettingsUnwritableException
- Namespace
- MailFathom.Infrastructure.Persistence.Users
- Assembly
- MailFathom.Infrastructure.dll
Indicates that the database refused the statement a validated user-record write would have committed.
public sealed class UserSettingsUnwritableException : MailFathomException, ISerializable
- Inheritance
-
UserSettingsUnwritableException
- Implements
- Inherited Members
Remarks
Raised rather than returned for the reason RootSettingsUnwritableException is: 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, and putting it in the same list as "the record is invalid" and "somebody else won the race"
would mix a failure of the machinery with two outcomes an operator's own edit produced.
The user's record is unchanged when this is raised, with two exceptions the message names where they apply: a statement that outran its command timeout and one whose connection broke while it was in flight had both reached the server, so which of them happened is not known from here. Reading the version now in force settles it, and a second attempt is safe either way, because the version guard refuses one composed over a version the first attempt already moved.
The message names neither the connection, the credential, nor any part of the document, which is one person's own configuration rather than a diagnostic. What the database said stays reachable as InnerException for an operator's log.
Constructors
- UserSettingsUnwritableException(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.