Table of Contents

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 accounts 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 name.

It is the same failure whichever way the request named the account. Text that matches no identifier and no display name is refused exactly as an identifier the deployment stopped serving is, so a caller cannot learn which of the two spellings it got wrong, nor that the other spelling exists.

The message names what the caller supplied, which carries nothing the caller did not already write.

Constructors

MailAccountNotAccessibleException(MailAccountId)

Initializes the failure for an identifier this deployment does not serve.

MailAccountNotAccessibleException(MailAccountSelector)

Initializes the failure for text that named no account this deployment serves.

Properties

ErrorCode

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

RequestedAccount

Gets the text the request named the account with.