Table of Contents

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

failure ObjectStorageFailure

What ended it, which decides the code and whether a repetition is worthwhile.

cause Exception

The endpoint's own failure, kept as diagnostic detail rather than republished.

Returns

ObjectStorageUnavailableException

The failure to raise.

Exceptions

ArgumentNullException

Thrown when cause is null.

ArgumentException

Thrown when failure is the unspecified struct default, which names no classification and carries no code.