ParseException ParseException ParseException Class

Definition

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

public class ParseException : System.Management.Automation.RuntimeException
type ParseException = class
    inherit RuntimeException
Public Class ParseException
Inherits RuntimeException
Inheritance
Derived

Constructors

ParseException() ParseException() ParseException()

Initializes a new instance of the class ParseException

ParseException(ParseError[]) ParseException(ParseError[]) ParseException(ParseError[])

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

ParseException(SerializationInfo, StreamingContext) ParseException(SerializationInfo, StreamingContext) ParseException(SerializationInfo, StreamingContext)

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

ParseException(String) ParseException(String) ParseException(String)

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

ParseException(String, Exception) ParseException(String, Exception) ParseException(String, Exception)

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

Properties

ErrorRecord ErrorRecord ErrorRecord Inherited from RuntimeException
Errors Errors Errors

The list of parser errors.

Message Message Message

The error message to display.

StackTrace StackTrace StackTrace Inherited from RuntimeException
WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement Inherited from RuntimeException

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Add private data for serialization.

Applies to