Table of Contents

Class TigerCliSystemCancellationException

Namespace
ItTiger.TigerCli.Exceptions
Assembly
ItTiger.TigerCli.dll
Thrown by the simple (collapsing) TigerTui prompt helpers when the underlying modal completed with SystemCancel — a process/system cancellation request such as Ctrl-C / SIGINT / SIGTERM / SIGQUIT.
public sealed class TigerCliSystemCancellationException : OperationCanceledException, ISerializable
Inheritance
TigerCliSystemCancellationException
Implements
Inherited Members

Remarks

Simple APIs collapse a modal outcome to value-or-null (or bool?) and cannot represent process/system cancellation safely: returning null would masquerade as an ordinary user cancel. They therefore surface it as this exception. The rich *ResultAsync APIs return SystemCancel as an ordinary result kind instead and never throw. Derives from OperationCanceledException so idiomatic cancellation handling still applies, while the concrete type keeps system cancellation distinguishable from token cancellation.

Constructors

TigerCliSystemCancellationException()

Initializes a new instance of the TigerCliSystemCancellationException class with the default system-cancellation message.
public TigerCliSystemCancellationException()

TigerCliSystemCancellationException(string)

Initializes a new instance of the TigerCliSystemCancellationException class with a specified message.
public TigerCliSystemCancellationException(string message)

Parameters

message string
The message that describes the error.

TigerCliSystemCancellationException(string, Exception)

Initializes a new instance of the TigerCliSystemCancellationException class with a specified message and inner exception.
public TigerCliSystemCancellationException(string message, Exception innerException)

Parameters

message string
The message that describes the error.
innerException Exception
The exception that caused the current exception.