ParseError Class
Represents an object that indicates a message, warning or error related to parsing.
public class ParseError : IParseError
- Inheritance:
- object object
- Implements:
- IParseError
Constructors
ParseError(ParseErrorLevel, string?, TextPositionRange?)
Initializes an instance of the class.
public ParseError(ParseErrorLevel level = ParseErrorLevel.Error, string? description = null, TextPositionRange? positionRange = null)
| Parameter | Type | Description |
|---|---|---|
| level | ParseErrorLevel | A ParseErrorLevel indicating the error level, defaulting to Error. |
| description | string | The description of the error, which is displayed in the user interface. |
| positionRange | TextPositionRange? | The TextPositionRange of the error, if known. |
Properties
ClassificationType
The optional IClassificationType associated with the error.
Description
The description of the error, which is displayed in the user interface.
Level
A ParseErrorLevel indicating the error level.
PositionRange
The TextPositionRange of the error, if known.
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Returns
- bool:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
ToString()
Returns the string representation of this object.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)