Table of Contents

Class MailboxCredentialRefusedException

Namespace
MailFathom.Application.Synchronization.Sessions
Assembly
MailFathom.Application.dll

Indicates that a mail server refused the credential MailFathom holds for an account.

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

Remarks

It is the opposite failure from MailboxUnavailableException and the distinction is what a worker acts on. An unavailable server is expected to serve the same work on a later run, so the account is backed off and approached again; a refused credential will be refused identically every run until a person replaces it, so the run is what reports it rather than what retries it.

It exists as an application-owned failure so that distinction survives the adapter boundary. A mail library reports a refusal through its own exception types, and a worker reading those directly would be a worker that depends on which library opened the connection.

The message names the account alias and nothing else: not the user name, not the mechanism the server selected, not the server's own answer, none of which can be logged.

Constructors

MailboxCredentialRefusedException(MailAccountId, Exception)

Initializes a new credential refusal naming the account it stopped.

Properties

AccountId

Gets the account whose credential was refused.

ErrorCode

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