Skip to content

AllProvidersFailedException

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Providers

AllProvidersFailedException Class

Thrown by ITieredProviderSelector<TQuery,TResult> when at least one provider was registered but every provider failed or was denied by the quota gate.

public sealed class AllProvidersFailedException : NexusLabs.Needlr.AgentFramework.Providers.NoProvidersAvailableException

Inheritance System.Object 🡒 System.Exception 🡒 NoProvidersAvailableException 🡒 AllProvidersFailedException

Remarks

Inherits from NoProvidersAvailableException so callers can choose to catch the base type for both "no providers registered" and "all providers failed" conditions, or catch this type specifically.

Constructors

AllProvidersFailedException(IReadOnlyList<string>) Constructor

public AllProvidersFailedException(System.Collections.Generic.IReadOnlyList<string> attempts);

Parameters

attempts System.Collections.Generic.IReadOnlyList<System.String>

Per-provider attempt diagnostics in the order providers were tried.

AllProvidersFailedException(IReadOnlyList<string>, Exception) Constructor

public AllProvidersFailedException(System.Collections.Generic.IReadOnlyList<string> attempts, System.Exception? innerException);

Parameters

attempts System.Collections.Generic.IReadOnlyList<System.String>

Per-provider attempt diagnostics in the order providers were tried.

innerException System.Exception

The underlying exception that caused this failure, if any.

Properties

AllProvidersFailedException.Attempts Property

Gets the per-provider attempt diagnostics in the order they were tried. Each entry describes one provider's outcome (e.g., quota denial or unavailability reason).

public System.Collections.Generic.IReadOnlyList<string> Attempts { get; }

Property Value

System.Collections.Generic.IReadOnlyList<System.String>