Skip to content
ConsoleMonster

API Reference

Class

PromptCancelledException

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
  • PromptCancelledException

Constructors

PromptCancelledException 3 overloads
public PromptCancelledException() #

Creates the exception.

public PromptCancelledException(String prompt) #

Creates the exception for a prompt.

Parameters

prompt System.String requiredposition: 0
The prompt title.
public PromptCancelledException(String message, Exception innerException) #

Creates the exception with an inner exception.

Parameters

message System.String requiredposition: 0
The message.
innerException System.Exception requiredposition: 1
The cause.

Properties

public String? Prompt { get; } #

The prompt title, when known.