Class EzrSyntaxError
- Namespace
- EzrSquared.Syntax.Errors
- Assembly
- ezrSquared-lib.dll
Error class for all syntax errors.
public class EzrSyntaxError : IEzrError
- Inheritance
-
objectEzrSyntaxError
- Implements
- Derived
Constructors
EzrSyntaxError(string, string, Position, Position)
Error class for all syntax errors.
public EzrSyntaxError(string title, string details, Position startPosition, Position endPosition)
Parameters
title
stringThe title of the EzrSyntaxError.
details
stringThe reason why the EzrSyntaxError occurred.
startPosition
PositionThe starting Position of the EzrSyntaxError.
endPosition
PositionThe ending Position of the EzrSyntaxError.
Fields
InvalidGrammar
Invalid grammar was encountered.
public const string InvalidGrammar = "Invalid grammar"
Field Value
- string
InvalidHexValue
An invalid hexadecimal value was encountered.
public const string InvalidHexValue = "Invalid hexadecimal value"
Field Value
- string
UnexpectedCharacter
An unexpected character was encountered.
public const string UnexpectedCharacter = "Unexpected character"
Field Value
- string
Properties
Details
The reason why the IEzrError occurred.
public string Details { get; }
Property Value
- string
ErrorEndPosition
public Position ErrorEndPosition { get; }
Property Value
ErrorStartPosition
public Position ErrorStartPosition { get; }
Property Value
Title
The name of the IEzrError.
public string Title { get; }
Property Value
- string
Methods
ToString()
Creates the formatted text representation of the EzrSyntaxError.
public override string ToString()
Returns
- string
The formatted text.