Class ContactQueryInvalidException
- Namespace
- MailFathom.Application.Contacts.Failures
- Assembly
- MailFathom.Application.dll
The failure raised when a contact listing asks for something the book does not serve.
public sealed class ContactQueryInvalidException : MailFathomException, ISerializable
- Inheritance
-
ContactQueryInvalidException
- Implements
- Inherited Members
Remarks
The page size, the origin, and the search text are the three things a caller composes a listing from, and each is refused rather than absorbed: a page size above the ceiling is refused instead of quietly served the ceiling, so a caller never reads a short page as the end of the book, and an unusable search is refused instead of matching nothing, so a caller never reads an empty page as a person this deployment does not hold.
The message names the part of the request and its limit. It never repeats the text that was refused, because a search is somebody's name or address; both the part and the limit come from this assembly rather than from the request.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
Methods
- NotASearch(Exception)
Refuses search text the book cannot look anybody up by.
- NotAnOrigin()
Refuses text naming no origin a contact can have.
- PageSizeOutOfRange(int)
Refuses a page size outside the range the book serves.