ParseException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) |