Skip to content
ConsoleMonster
Class

PromptUnavailableException

ConsoleMonster.Interactive

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

A prompt needed an answer in a session where nobody can answer (CI, redirected input, -NonInteractive) and has no default. The message names the parameter to pass, when the prompt knows it.

Inheritance

  • InvalidOperationException
  • PromptUnavailableException

Constructors

PromptUnavailableException 3 overloads
public PromptUnavailableException() #

Creates the exception.

public PromptUnavailableException(string message) #

Creates the exception with a message.

Parameters

message string required
The message.
public PromptUnavailableException(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; internal set; } #

The prompt title.

public string? Parameter { get; internal set; } #

The parameter that would have supplied the value, if known.