Table of Contents

Class MailFolderRoleUnmappedException

Namespace
MailFathom.Application.Folders
Assembly
MailFathom.Application.dll

Indicates that a folder was named by a role no folder of that account is mapped with.

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

Remarks

It is raised rather than returned because the fact travels: a rule's destination, a tool's folder filter, and a future feature asking for the junk folder each reach the same resolution and none of them can carry on without an answer. Raising one failure from one place is what makes them refuse identically, instead of a role reading as an empty result here and as an unknown alias there.

The message names the role, and the account only when the question was about one. A request that named no account is answered without the deployment's account list, exactly as an unserved account is refused by naming the text the caller supplied and nothing else: a refusal must not become the way to enumerate what is there.

Constructors

MailFolderRoleUnmappedException(MailAccountId, MailFolderSpecialUse)

Initializes a new refusal naming the account and the role it maps no folder with.

MailFolderRoleUnmappedException(MailFolderSpecialUse)

Initializes a new refusal for a role no account of a whole scope maps a folder with.

Properties

AccountId

Gets the account the folder was looked for in, and null when a whole scope was asked.

ErrorCode

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

Role

Gets the role nothing is mapped with.