Class ObjectStorageUnavailableException
- Namespace
- MailFathom.Infrastructure.ObjectStorage
- Assembly
- MailFathom.Infrastructure.dll
The failure an operation against the configured object-storage endpoint is reported as.
public sealed class ObjectStorageUnavailableException : MailFathomException, ISerializable
- Inheritance
-
ObjectStorageUnavailableException
- Implements
- Inherited Members
Remarks
One exception type carries every classification ObjectStorageFailure declares except the caller's own cancellation, which is rethrown unchanged so a caller that went away and an endpoint that refused work never arrive as one failure. The code is the classification's rather than the type's, because what an operator does about a refused credential and about an unreachable endpoint are different acts and an alert has to tell them apart.
No message here carries the endpoint address, the bucket, an object key, or any part of a credential. Each
names the configuration key an operator edits instead, which is the one thing they need told: the value is already
in the file they would open, while backend/src/AGENTS.md § Failures lists a host name beside a
credential among the things a message may never carry. The endpoint's own answer stays on the inner exception, which
is diagnostic detail for a log rather than something a boundary republishes.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
- Failure
Gets what ended the operation.
Methods
- From(ObjectStorageFailure, Exception)
Reports an operation that ended in a classified failure.