ParseException Class

Definition

Defines the exception thrown when a syntax error occurs while parsing msh script text.

public class ParseException : System.Management.Automation.RuntimeException
Inheritance
Derived

Inherited Members

System.Management.Automation.RuntimeException

Constructors

ParseException()

Initializes a new instance of the class ParseException

ParseException(ParseError[])

Initializes a new instance of the ParseException class with a collection of error messages.

ParseException(String)

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

ParseException(SerializationInfo, StreamingContext)

Initializes a new instance of the ParseException class and defines the serialization information, and streaming context.

ParseException(String, Exception)

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

Properties

Errors

The list of parser errors.

Message

The error message to display.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Add private data for serialization.