Class EmailContentReadCountOutOfRangeException
- Namespace
- MailFathom.Application.Emails.GetEmailContent
- Assembly
- MailFathom.Application.dll
The failure raised when a read names no email at all, or more emails than one call serves.
public sealed class EmailContentReadCountOutOfRangeException : MailFathomException, ISerializable
- Inheritance
-
EmailContentReadCountOutOfRangeException
- Implements
- Inherited Members
Remarks
It refuses the request rather than truncating the list, which is the convention every bound on this surface follows: a caller handed the first ten of its fifteen emails could not tell which five it did not receive, and would have to compare the answer against what it asked for to find out.
One failure covers both ends of the range for the reason a page size does. Naming nothing and naming too much are the same finding about a count the caller chose, and the message states the range rather than the value it was handed.
Constructors
- EmailContentReadCountOutOfRangeException(int)
Initializes the failure.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
- MaximumEmails
Gets the greatest number of emails one read serves.