Compartir a través de


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
[System.Serializable]
public class PromptingException : System.Management.Automation.Host.HostException
public class PromptingException : System.Management.Automation.Host.HostException
[<System.Serializable>]
type PromptingException = class
    inherit HostException
type PromptingException = class
    inherit HostException
Public Class PromptingException
Inherits 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

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to