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
Position ErrorEndPosition { get; }
Property Value
ErrorStartPosition
Position ErrorStartPosition { get; }
Property Value
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
PositionThe starting position of the underlining.
endPosition
PositionThe ending position of the underlining.
Returns
- (int AdjustedLineNumber, string SourceWithUnderline)
The formatted text and the actual starting line number of the error.