Table of Contents

Class StoredEmailIdentifierMalformedException

Namespace
MailFathom.Application.Emails.Mailboxes
Assembly
MailFathom.Application.dll

The failure raised when a request names an email with text that is no identifier this system issues.

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

Remarks

A protocol adapter converts a caller's text into the domain identity a read is expressed in, and text that is neither is refused there, before anything is looked up. The failure lives in this assembly rather than in the adapter for the reason MailboxQueryFilterInvalidException does: the identity it is about is the application's, so a second entrypoint refusing the same text reports it under the same code instead of inventing one.

It is deliberately distinct from the per-email failure a read reports for an email this deployment does not hold. That one answers a request that named an email, and a caller acts on it by looking the email up again; this one says the request named no email at all, which no repeated read will change. It is also raised rather than returned for that reason: text that names nothing leaves no email to report an outcome against.

The message carries no payload of its own, because the only thing there would be to name is the refused text — and that text is the caller's own input, on its way into a client-readable result and the log beside it.

Constructors

StoredEmailIdentifierMalformedException()

Initializes the failure for text that names no stored email.

Properties

ErrorCode

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