Skip to content
ConsoleMonster
Class

PromptCanceledException

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Base
OperationCanceledException
Implements
ISerializable
Modifiers
sealed

The user cancelled a prompt (Esc where cancelling is allowed, or Ctrl+C).

Inheritance

  • OperationCanceledException
  • PromptCanceledException

Constructors

PromptCanceledException 3 overloads
public PromptCanceledException() #

Creates the exception.

public PromptCanceledException(string prompt) #

Creates the exception for a prompt.

Parameters

prompt string required
The prompt title.
public PromptCanceledException(string message, Exception innerException) #

Creates the exception with an inner exception.

Parameters

message string required
The message.
innerException System.Exception required
The cause.

Properties

public string? Prompt { get; } #

The prompt title, when known.