Constructor JobAttemptFailure
- Namespace
- MailFathom.Application.Jobs.Execution
- Assembly
- MailFathom.Application.dll
JobAttemptFailure(JobFailureRecord, JobFailureDisposition)
What one failed attempt was classified as, what was written against the job, and what became of it.
public JobAttemptFailure(JobFailureRecord Record, JobFailureDisposition Disposition)
Parameters
RecordJobFailureRecordThe verdict and the operator-safe reason the job's row now keeps.
DispositionJobFailureDispositionWhether the job goes back to the queue or is terminal.
Remarks
The exception a handler raised is deliberately not here. A handler works on mail, so a library's message may quote a subject, an address, or a header, and anything holding that exception would put it into every log line reporting the attempt. Record is the narrowed form — a type name and a stable code — and it is what both the row and the report carry. A handler that wants its own failure diagnosed in full is the one place that knows what in it is safe to write, so it logs that itself.