Table of Contents

Class EzrSyntaxError

Namespace
EzrSquared.Syntax.Errors
Assembly
ezrSquared-lib.dll

Error class for all syntax errors.

public class EzrSyntaxError : IEzrError
Inheritance
object
EzrSyntaxError
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 string

The title of the EzrSyntaxError.

details string

The reason why the EzrSyntaxError occurred.

startPosition Position

The starting Position of the EzrSyntaxError.

endPosition Position

The 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

The ending Position of the IEzrError.

public Position ErrorEndPosition { get; }

Property Value

Position

ErrorStartPosition

The starting Position of the IEzrError.

public Position ErrorStartPosition { get; }

Property Value

Position

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.