Method ContainsControlCharacter
- Namespace
- MailFathom.Application.Emails.Mailboxes
- Assembly
- MailFathom.Application.dll
ContainsControlCharacter(string)
Refuses a text filter that carries a control character.
public static MailboxQueryFilterInvalidException ContainsControlCharacter(string filterName)
Parameters
filterNamestringHow this assembly names the filter, for example
subject fragment.
Returns
- MailboxQueryFilterInvalidException
The failure to raise.
Remarks
A control character is refused at this boundary rather than sent onward, because PostgreSQL text cannot hold a zero byte at all: a fragment carrying one would leave the query as a provider exception instead of the stable failure this boundary publishes. The refusal covers the whole class rather than that one character, since no subject a caller could be looking for part of contains any of them.