Interface IJobFailureClassifier
- Namespace
- MailFathom.Application.Jobs.Execution
- Assembly
- MailFathom.Application.dll
Decides what a job's row records about the failure one attempt raised.
public interface IJobFailureClassifier
Remarks
A port rather than a method on the executor, because the answer is read out of failure types the adapters own: a
dependency that declined the work, a provider that refused it, a socket that closed. Naming those inside
Application would put the outbound stack on the wrong side of the boundary, and asking the handler would let
every consumer invent a verdict of its own for the same failure.
The classification and the reason are one answer rather than two calls, because they are read from the same walk over the same exception chain, and a reason that disagreed with the verdict beside it would be worse than either.
Methods
- Classify(Exception)
Classifies what a handler raised, and names it in terms safe to store and to log.