PromptingException Class

Definition

Defines the exception thrown when an error occurs from prompting for a command parameter.

public ref class PromptingException : System::Management::Automation::Host::HostException
Inheritance
Attributes

Constructors

PromptingException()

Initializes a new instance of the PromptingException class.

PromptingException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the HostException class and defines the SerializationInfo and the StreamingContext.

PromptingException(String, Exception, String, ErrorCategory)

Initializes a new instance of the PromptingException class and defines the error message, inner exception, the error ID, and the error category.

PromptingException(String, Exception)

Initializes a new instance of the PromptingException class and defines the error message and inner exception.

PromptingException(String)

Initializes a new instance of the PromptingException class and defines the error message.

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0