Method From
- Namespace
- MailFathom.Application.Mail.Delivery.Drafts
- Assembly
- MailFathom.Application.dll
From(AuthoredEmailRefusal)
Reports a draft that was not composed, in the terms the author can act on.
public static MailDraftRefusedException From(AuthoredEmailRefusal refusal)
Parameters
refusalAuthoredEmailRefusalWhat the composition refused and where.
Returns
- MailDraftRefusedException
The failure to raise.
Exceptions
- ArgumentNullException
Thrown when
refusalis null.- InvalidOperationException
Thrown when the refusal names a reason this system does not declare.
From(RecipientResolutionRefusal)
Reports a recipient that resolved to nobody, naming what was counted and never who.
public static MailDraftRefusedException From(RecipientResolutionRefusal refusal)
Parameters
refusalRecipientResolutionRefusalWhat the resolution refused.
Returns
- MailDraftRefusedException
The failure to raise.
Exceptions
- ArgumentNullException
Thrown when
refusalis null.- InvalidOperationException
Thrown when the refusal names a reason this system does not declare.
From(AuthoredResponseRefusal)
Reports an answer to a stored email that was not authored at all.
public static MailDraftRefusedException From(AuthoredResponseRefusal refusal)
Parameters
refusalAuthoredResponseRefusalWhat the authoring refused.
Returns
- MailDraftRefusedException
The failure to raise.
Exceptions
- ArgumentNullException
Thrown when
refusalis null.- InvalidOperationException
Thrown when the refusal names a reason this system does not declare.