Class OutgoingMailRefusedException
- Namespace
- MailFathom.Application.Mail.Delivery.Governance
- Assembly
- MailFathom.Application.dll
The failure raised when a message is not written down because this deployment's own bounds refuse it.
public sealed class OutgoingMailRefusedException : MailFathomException, ISerializable
- Inheritance
-
OutgoingMailRefusedException
- Implements
- Inherited Members
Remarks
It is raised where the outgoing record is created, which is the one place every author passes through, so a caller, a rule, a command, and whatever asks next all meet the same refusal. Nothing has been written when it is raised, so a refusal costs the asker nothing but the answer.
The code is chosen per refusal rather than fixed for the type, because the three families are three different acts: an operator turns sending on, a caller writes to somebody else, and a ceiling lifts when its period rolls over.
No message carries a recipient. A policy refusal names which half of the policy refused, and a ceiling refusal names which ceiling was reached; neither names an address, a domain, or a count of the people a message was addressed to, because a refusal is a line in a log and a recipient is personal data of somebody who is not this mailbox's owner.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
Methods
- CallerCeilingReached(AuthoredSendCeiling)
Reports a send that would carry one caller's current period past a ceiling of its own.
- CeilingReached(OutgoingMailCeiling)
Reports a send that would carry the current period past a ceiling.
- RecipientRefused(OutgoingRecipientRefusalReason)
Reports a message naming a recipient this deployment's recipient policy does not admit.
- RecipientUnvouched()
Reports a message addressed to somebody nothing this deployment holds vouches for.
- SendingNotEnabled(OutgoingSendRefusalReason)
Reports a deployment that holds no capability to send as the account a message names.