Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PromptingException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new PromptingException object. The variants of this constructor can create an empty object, an object that contains an exception message, and more.

Namespace:   System.Management.Automation.Host
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_pubmethodPromptingException()

Creates a new PromptingException object that is empty.

System_CAPS_protmethodPromptingException(SerializationInfo, StreamingContext)

Creates a new PromptingException object that contains information that is read from the provided serialization information.

System_CAPS_pubmethodPromptingException(String)

Creates a new PromptingException object that contains an exception message.

System_CAPS_pubmethodPromptingException(String, Exception)

Creates a new PromptingException object that contains an exception message and the inner exception that caused this exception to be thrown.

System_CAPS_pubmethodPromptingException(String, Exception, String, ErrorCategory)

Creates a new PromptingException object that contains an exception message, an inner exception, an error instance identifier, and an error category identifier.

Return to top

Community Additions

Show: