Table of Contents

Interface IEzrError

Namespace
EzrSquared
Assembly
ezrSquared-lib.dll

Error interface for all errors.

public interface IEzrError

Properties

Details

The reason why the IEzrError occurred.

string Details { get; }

Property Value

string

ErrorEndPosition

The ending Position of the IEzrError.

Position ErrorEndPosition { get; }

Property Value

Position

ErrorStartPosition

The starting Position of the IEzrError.

Position ErrorStartPosition { get; }

Property Value

Position

Title

The name of the IEzrError.

string Title { get; }

Property Value

string

Methods

SourceWithUnderline(Position, Position)

Creates formatted text which contains the text between startPosition and endPosition, underlined with tilde (~) symbols.

protected internal static (int AdjustedLineNumber, string SourceWithUnderline) SourceWithUnderline(Position startPosition, Position endPosition)

Parameters

startPosition Position

The starting position of the underlining.

endPosition Position

The ending position of the underlining.

Returns

(int AdjustedLineNumber, string SourceWithUnderline)

The formatted text and the actual starting line number of the error.