Table of Contents

Class MailDeliveryUnavailableException

Namespace
MailFathom.Application.Mail.Delivery
Assembly
MailFathom.Application.dll

Indicates that a submission server did not serve an operation within the resilience budget configured for it.

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

Remarks

This is the failure a caller sees when the attempts, the timeouts, or the in-flight limit of the delivery dependency class were spent: an abandoned attempt, an operation that outlived its total timeout, an open circuit, and a shed execution all arrive here. The submission endpoint is unreachable for now and the same work is expected to succeed later.

It is deliberately distinct from OperationCanceledException, which stays the failure of a caller that stopped waiting — a host shutting down — and from a phase budget expiring, which arrives as a TimeoutException naming the phase and says the server answered nothing rather than that the whole dependency is spent.

The message names the account alias and nothing else. A submission failure knows a host, a credential, and the recipients an exchange had reached, and none of those may appear in a line an operator's log keeps.

Constructors

MailDeliveryUnavailableException(MailAccountId, Exception)

Initializes a new delivery unavailability failure naming the account it stopped.

Properties

AccountId

Gets the account whose submission server was unavailable.

ErrorCode

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