次の方法で共有


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)

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

ParseException(String, Exception)

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

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