Table of Contents

Class JobPayloadTooLargeException

Namespace
MailFathom.Application.Jobs
Assembly
MailFathom.Application.dll

Indicates that a job payload serialized to more than the enqueue boundary accepts.

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

Remarks

A payload holds references, and every reference this system composes is short. A document that exceeds the bound is therefore evidence that something copied content into job state, which is the outcome the payload contract exists to prevent — so the enqueue is refused rather than truncated or stored.

It is raised rather than reported as a result because no caller can act on it: an enqueuer composing an oversized document has a defect to fix, not a smaller document to try instead. The message names the job type, the bound, and the size, and carries nothing out of the document.

Constructors

JobPayloadTooLargeException(JobType, int, int)

Initializes a new refusal naming the type, the bound, and the size that exceeded it.

Properties

ErrorCode

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

JobType

Gets the job type whose payload was composed.

MaximumByteCount

Gets the greatest number of bytes the enqueue boundary accepts.

SerializedByteCount

Gets how many bytes the serialized document occupies.