Skip to content

NoProvidersAvailableException

NexusLabs.Needlr.AgentFramework

NexusLabs.Needlr.AgentFramework.Providers

NoProvidersAvailableException Class

Base exception type thrown by ITieredProviderSelector<TQuery,TResult> when it cannot return a result because no provider is available to serve the request.

public class NoProvidersAvailableException : System.Exception

Inheritance System.Object 🡒 System.Exception 🡒 NoProvidersAvailableException

Derived
AllProvidersFailedException
NoProvidersRegisteredException

Remarks

Concrete subtypes describe the specific reason no provider was available: - NoProvidersRegisteredException — no enabled providers were registered. - AllProvidersFailedException — every registered provider failed or was gated out.

Callers can catch this base type to handle both conditions uniformly, or catch a concrete subtype for more granular handling.

Constructors

NoProvidersAvailableException(string) Constructor

public NoProvidersAvailableException(string message);

Parameters

message System.String

A description of why no provider was available.

NoProvidersAvailableException(string, Exception) Constructor

public NoProvidersAvailableException(string message, System.Exception? innerException);

Parameters

message System.String

A description of why no provider was available.

innerException System.Exception

The underlying exception that caused this failure, if any.