Class SpamScannerUnavailableException
- Namespace
- MailFathom.Application.Spam.Scanning
- Assembly
- MailFathom.Application.dll
The failure that stops a host whose spam scanner is switched on with nothing answering behind it.
public sealed class SpamScannerUnavailableException : MailFathomException, ISerializable
- Inheritance
-
SpamScannerUnavailableException
- Implements
- Inherited Members
Remarks
Raised by ISpamScannerProbe while the host is coming up, and by nothing on a serving path — where a scanner that does not answer is a Unavailable result the classification continues past. The two are deliberately different: one message classified without its second opinion is a weaker record, and a whole deployment classifying without one is a switch that says something untrue.
No message here carries the scanner's address, because a message is what reaches a log and
src/AGENTS.md § Failures lists a host name beside a credential among the things one may never carry.
Each one names SpamClassification:Scanner:Host instead, which is the key an operator edits, and the resolved
address stays on Endpoint for a caller with somewhere safe to put it.
Properties
- Endpoint
Gets the scanner address the probe could not get an answer from.
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
Methods
- NotASpamDaemon(string)
Refuses to start because something answered at that address without speaking the scanner's protocol.
- NotReached(string, Exception)
Refuses to start because the configured scanner could not be reached at all.