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.

ParseException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the ParseException class. The variants of this constructor can create an empty object, an object that contains an exception message, and more.

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

NameDescription
System_CAPS_pubmethodParseException()

Initializes a new instance of the ParseException class that is empty.

System_CAPS_pubmethodParseException(ParseError[])

Initializes a new instance of the ParseException class with a collection of parsing errors. Introduced in Windows PowerShell 3.0.

System_CAPS_protmethodParseException(SerializationInfo, StreamingContext)

Initializes a new instance of the ParseException class that contains information read from the provided serialization information.

System_CAPS_pubmethodParseException(String)

Initializes a new instance of the ParseException class that contains an exception message.

System_CAPS_pubmethodParseException(String, Exception)

Initializes a new instance of the ParseException class that contains an exception message and the inner exception that caused this exception to be thrown.

Return to top

Community Additions

Show: