Method FailureCodeOf
- Namespace
- MailFathom.Application.Mail.Delivery.Filing
- Assembly
- MailFathom.Application.dll
FailureCodeOf(Exception)
Names the code that stands for whatever ended an attempt.
public static MailFathomErrorCode FailureCodeOf(Exception failure)
Parameters
failureExceptionWhat ended it.
Returns
- MailFathomErrorCode
The code an operator looks the failure up by.
Remarks
A first-party failure already carries the code an operator looks up, so it is kept. What is left is genuinely unaccounted for and says so rather than borrowing a code that would mislead.
Exceptions
- ArgumentNullException
Thrown when
failureis null.