Share via


IncompleteParseException Class

Definition

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

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

Remarks

This is a variation on a parsing error that indicates that the parse was incomplete rather than irrecoverably wrong. A host can catch this exception and then prompt for additional input to complete the parse.

Constructors

IncompleteParseException()

Initializes a new instance of the class IncompleteParseException.

IncompleteParseException(SerializationInfo, StreamingContext)
Obsolete.

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

IncompleteParseException(String, Exception)

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

IncompleteParseException(String)

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

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
Errors

The list of parser errors.

(Inherited from ParseException)
Message

The error message to display.

(Inherited from ParseException)
WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Add private data for serialization.

(Inherited from ParseException)

Applies to