Class MailAccountNotAccessibleException
- Namespace
- MailFathom.Application.Accounts
- Assembly
- MailFathom.Application.dll
The failure raised when a request names a mail account this deployment does not serve.
public sealed class MailAccountNotAccessibleException : MailFathomException, ISerializable
- Inheritance
-
MailAccountNotAccessibleException
- Implements
- Inherited Members
Remarks
One failure covers both "no such account" and "not yours", deliberately. A caller that could tell the two apart could enumerate the configured account identifiers one request at a time, so the two answers are the same answer. This is also why the alternative — returning an empty page — is not available: an empty page confirms the identifier.
The message names the identifier the caller supplied, which is MailFathom's own configured name for the account and carries nothing the caller did not already write.
Constructors
- MailAccountNotAccessibleException(MailAccountId)
Initializes the failure for one inaccessible account.
Properties
- AccountId
Gets the account identifier the request named.
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.