Compartilhar via


ParseException Class

Definition

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

public ref class ParseException : System::Management::Automation::RuntimeException
[System.Serializable]
public class ParseException : System.Management.Automation.RuntimeException
public class ParseException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type ParseException = class
    inherit RuntimeException
type ParseException = class
    inherit RuntimeException
Public Class ParseException
Inherits RuntimeException
Inheritance
Derived
Attributes

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(SerializationInfo, StreamingContext)
Obsolete.

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.

ParseException(String)

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

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
Errors

The list of parser errors.

Message

The error message to display.

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Add private data for serialization.

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to