Table of Contents

Class TigerCliProviderException

Namespace
ItTiger.TigerCli.Exceptions
Assembly
ItTiger.TigerCli.dll
Deliberate failure signal for dynamic value providers. A provider throws this when it cannot produce its choices for a meaningful, user-facing reason — for example a reachable database with an incompatible schema — so the run fails with the provider's message instead of behaving as if no choices were available.
public sealed class TigerCliProviderException : Exception, ISerializable
Inheritance
TigerCliProviderException
Implements
Inherited Members

Remarks

The framework reports Message to the user (interactive and non-interactive alike) and maps the run to ProviderError, which rolls up to Execution. This differs from any other exception escaping a provider, which is treated as UnhandledException. Cancellation is never expressed with this type — a provider observing a cancelled CancellationToken should throw OperationCanceledException as usual.

Constructors

TigerCliProviderException(string)

Creates a provider failure with a user-facing message.
public TigerCliProviderException(string message)

Parameters

message string
The user-facing failure reason; must not be null, empty, or whitespace.

Exceptions

ArgumentException
message is null, empty, or whitespace.

TigerCliProviderException(string, Exception?)

Creates a provider failure with a user-facing message and the underlying cause.
public TigerCliProviderException(string message, Exception? innerException)

Parameters

message string
The user-facing failure reason; must not be null, empty, or whitespace.
innerException Exception
The underlying exception that caused the failure.

Exceptions

ArgumentException
message is null, empty, or whitespace.