Skip to content
ConsoleMonster

API Reference

Class

PromptUnavailableException

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 System.String requiredposition: 0
The message.
public PromptUnavailableException(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; internal set; } #

The prompt title.

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

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