Table of Contents

Class MailAnsweringBudgetExhaustedException

Namespace
MailFathom.Application.Retrieval.AskMail
Assembly
MailFathom.Application.dll

The failure raised when answering a question would cost more than this deployment agreed to spend.

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

Remarks

It is not a degradation and nothing is wrong with the deployment: the operator declared a ceiling and it has been reached. That is why it is separate from MailAnsweringUnavailableException, which says the capability cannot serve — a client told the wrong one of the two either waits for a repair that is not coming or retries something that will not become cheaper.

Neither message names a ceiling, a count, or a model. A number a caller cannot influence is not something they can act on, and publishing how much a deployment spends on mail is publishing something about the mailbox; the operator reads both from the meter instead.

Properties

ErrorCode

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

Scope

Gets which ceiling the question reached.

Methods

PeriodSpent()

Refuses a question the current period has no allowance left for.

RunSpent()

Ends a run that reached what one question may spend.