Table of Contents

Method From

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

From(AuthoredEmailRefusal)

Reports a message that was not composed, in the terms the author can act on.

public static MailSubmissionRefusedException From(AuthoredEmailRefusal refusal)

Parameters

refusal AuthoredEmailRefusal

What the composition refused and where.

Returns

MailSubmissionRefusedException

The failure to raise.

Exceptions

ArgumentNullException

Thrown when refusal is null.

InvalidOperationException

Thrown when the refusal names a reason this system does not declare, which a refusal built from a cast integer is.

From(RecipientResolutionRefusal)

Reports a recipient that resolved to nobody, naming what was counted and never who.

public static MailSubmissionRefusedException From(RecipientResolutionRefusal refusal)

Parameters

refusal RecipientResolutionRefusal

What the resolution refused.

Returns

MailSubmissionRefusedException

The failure to raise.

Exceptions

ArgumentNullException

Thrown when refusal is 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, in the terms the caller can act on.

public static MailSubmissionRefusedException From(AuthoredResponseRefusal refusal)

Parameters

refusal AuthoredResponseRefusal

What the authoring refused.

Returns

MailSubmissionRefusedException

The failure to raise.

Remarks

The email that cannot be found and the email whose content cannot be read arrive as one answer on purpose, and the publication is where the two are joined: the authoring tells them apart because it records a repair request for the second, and a caller that could tell them apart would learn which mail exists by asking to reply to it.

Exceptions

ArgumentNullException

Thrown when refusal is null.

InvalidOperationException

Thrown when the refusal names a reason this system does not declare, which a refusal built from a cast integer is.