Table of Contents

Class RemoteFolderCreationRefusedException

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

Indicates that a mail server was asked to create the folder a mapping named and answered by refusing it.

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

Remarks

It is raised rather than returned, and it carries a code of its own, because the operator's remedy depends on being able to tell it apart from the alias that resolves to nothing. A quota reached, a namespace that forbids creating there, and a name the server will not accept are each something to act on; a folder nobody has is a path to correct. Reporting the first as the second would leave an operator reading the message a typo produces about a path they wrote correctly.

The message names the alias alone. The remote path is the mailbox owner's own naming of their mail, which no message an operator reads may carry — it belongs to the mapping-change audit record and to the debug detail.

Constructors

RemoteFolderCreationRefusedException(MailAccountId, MailFolderAlias)

Initializes a new refusal for a path the server holds under a name it will not let a folder take.

RemoteFolderCreationRefusedException(MailAccountId, MailFolderAlias, Exception)

Initializes a new refusal naming the alias whose folder the mail server would not create.

Properties

AccountId

Gets the account whose mailbox the folder was to be created in.

ErrorCode

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

FolderAlias

Gets the alias the configured path was written under.