Class ContactIdentifierMalformedException
- Namespace
- MailFathom.Application.Contacts.Failures
- Assembly
- MailFathom.Application.dll
The failure raised when a request names a contact with text the book cannot resolve anybody by.
public sealed class ContactIdentifierMalformedException : MailFathomException, ISerializable
- Inheritance
-
ContactIdentifierMalformedException
- Implements
- Inherited Members
Remarks
A protocol adapter converts a caller's text into the identity a read or a write is expressed in, and text that is neither an identifier this system issued nor a usable address is refused there, before anything is looked up. The failure lives in this assembly rather than in the adapter because the identity it is about is the book's, so a second entrypoint refusing the same text reports it under the same code instead of inventing one.
It is deliberately distinct from an answer reporting that the book holds nobody. That one answers a request that named somebody, and a caller acts on it by looking somebody else up; this one says the request named nobody at all, which no repeated read will change.
No message here carries the refused text. An identifier a caller invented says nothing an operator needs that the code does not already say, and an address is somebody's address whether or not it was mistyped.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
Methods
- NotAnAddress()
Refuses text that is no address anybody could be recorded as using.
- NotAnIdentifier()
Refuses text that is no identifier this system issues.
- NotExactlyOneWay()
Refuses a lookup that names a contact in neither way, or in both at once.