Class EmailSearchResultLimitOutOfRangeException
- Namespace
- MailFathom.Application.Emails.Search
- Assembly
- MailFathom.Application.dll
The failure raised when a lexical search asks for more ranked results than the search serves.
public sealed class EmailSearchResultLimitOutOfRangeException : MailFathomException, ISerializable
- Inheritance
-
EmailSearchResultLimitOutOfRangeException
- Implements
- Inherited Members
Remarks
Refused rather than clamped, for the reason an out-of-range page size is: a clamped window looks exactly like the window that was asked for, so a client that asked for a thousand results and reasoned about the completeness of what came back would silently reason about a fiftieth of it. An absent count is a different input and takes the default. It is its own failure rather than the page-size one because a search returns a window and no cursor continues it, so a caller reading the code learns which control they met.
Constructors
- EmailSearchResultLimitOutOfRangeException(int, int)
Initializes the failure for one rejected result count.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
- MaximumResultLimit
Gets the greatest number of results the search serves.
- RequestedResultLimit
Gets the number of results the request asked for.