Method From
- Namespace
- MailFathom.Infrastructure.ObjectStorage
- Assembly
- MailFathom.Infrastructure.dll
From(ObjectStorageFailure, Exception)
Reports an operation that ended in a classified failure.
public static ObjectStorageUnavailableException From(ObjectStorageFailure failure, Exception cause)
Parameters
failureObjectStorageFailureWhat ended it, which decides the code and whether a repetition is worthwhile.
causeExceptionThe endpoint's own failure, kept as diagnostic detail rather than republished.
Returns
- ObjectStorageUnavailableException
The failure to raise.
Exceptions
- ArgumentNullException
Thrown when
causeis null.- ArgumentException
Thrown when
failureis the unspecified struct default, which names no classification and carries no code.