Class OutboundDependencyUnavailableException
- Namespace
- MailFathom.Infrastructure.Resilience
- Assembly
- MailFathom.Infrastructure.dll
Indicates that a resilience pipeline declined to serve an operation any further.
public sealed class OutboundDependencyUnavailableException : MailFathomException, ISerializable
- Inheritance
-
OutboundDependencyUnavailableException
- Implements
- Inherited Members
Remarks
An abandoned attempt, an operation that outlived its total timeout, an open circuit, and an execution shed by the concurrency limiter are all the same statement to a caller: the dependency is not usable right now and the work belongs to a later run. They differ only in which limit was reached, which stays readable as the InnerException the pipeline produced.
The translation exists so the resilience library stops here. An adapter maps this one type onto the failure its own application port documents, and no caller above it has to name a Polly exception to recognize a dependency that is refusing work.
Constructors
- OutboundDependencyUnavailableException(OutboundDependency, Exception)
Initializes a new dependency unavailability failure naming the class whose limit was reached.
Properties
- Dependency
Gets the dependency class whose pipeline declined the operation.
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.