Class
PromptCanceledException
ConsoleMonster.Interactive
The user cancelled a prompt (Esc where cancelling is allowed, or Ctrl+C).
Inheritance
- OperationCanceledException
- PromptCanceledException
Constructors
PromptCanceledException 3 overloads
public PromptCanceledException(string prompt) #Creates the exception for a prompt.
Parameters
- prompt string
- The prompt title.
public PromptCanceledException(string message, Exception innerException) #Creates the exception with an inner exception.
Parameters
- message string
- The message.
- innerException System.Exception
- The cause.
Inherited Methods
public virtual void GetObjectData(SerializationInfo info, StreamingContext context) #Inherited from Exception
Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Properties
Inherited Properties
public CancellationToken CancellationToken { get; } #Inherited from OperationCanceledException
public MethodBase? TargetSite { get; } #Inherited from Exception
public virtual string Message { get; } #Inherited from Exception
public virtual IDictionary Data { get; } #Inherited from Exception
public Exception? InnerException { get; } #Inherited from Exception
public virtual string? HelpLink { get; set; } #Inherited from Exception
public virtual string? Source { get; set; } #Inherited from Exception
public int HResult { get; set; } #Inherited from Exception
public virtual string? StackTrace { get; } #Inherited from Exception