Class MailDraftRefusedException
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
The failure raised when a draft somebody asked for is not stored, not revised, or not promoted.
public sealed class MailDraftRefusedException : MailFathomException, ISerializable
- Inheritance
-
MailDraftRefusedException
- Implements
- Inherited Members
Remarks
It is the sibling of the submission's own refusal and shares every reason with it, because a draft is a message and is refused for everything a message is refused for. What the two do not share is a name for the act: a caller told its submission was refused when it asked to save a draft would read that as a message having been offered to a server and turned down, which is the one thing that certainly did not happen. Both publish through MailFathom.Application.Mail.Delivery.AuthoredMailRefusalPublication, so the code and the sentence a given mistake produces are one answer.
Two refusals are the draft's own. A draft nobody holds is the not-found answer every identifier in this system gives, and a draft nobody is addressed to is the one thing a draft may be and a send may not — so the absence of a recipient is refused here, at the promotion, rather than when the draft was written.
Three more are the draft's own for a different reason: a draft is the one authored act that comes in two shapes, a message of its own and an answer to a stored email, and a request that describes both or neither describes no draft this system can write. They publish the field refusal every authored message shares, because what a caller does about them is what that code is for — send the fields differently.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
Methods
- AccountNotNamed()
Reports text that names no account this deployment could look for.
- AnswerUnknown()
Reports a drafted answer naming none of the answers a stored email can be answered with.
- AnsweredDraftStatesItsOwnMessage()
Reports a drafted answer that also states an account or a subject of its own.
- AnsweredEmailAndAnswerDisagree()
Reports a request that names the email a draft answers without naming which answer it is, or the other way round.
- From(RecipientResolutionRefusal)
Reports a recipient that resolved to nobody, naming what was counted and never who.
- From(AuthoredResponseRefusal)
Reports an answer to a stored email that was not authored at all.
- From(AuthoredEmailRefusal)
Reports a draft that was not composed, in the terms the author can act on.
- MessageNotStated()
Reports a draft of a message of its own that states no account or no subject.
- NotAddressed()
Reports a draft that was asked to be sent and names nobody to send it to.
- NotFound()
Reports that no draft this deployment holds answers to the identifier a caller named.
- TooManyRecipients()
Reports a list of recipients longer than any outgoing record could be written for.