ParsingError

Description

abstract class Tinman.Core.Parsing.ParsingError

Derived from

ValidateMessage
ICodeRange

Extended by

SemanticError sealed
SyntaxError sealed

Represents a parser error.

Public / Methods

Throw


public method Throw → (2)

source in : string

Error source tag (see TinmanError.ErrorSource).

input in : ICodeInput

[not-null]
The input source code (for error reporting).

returns → ValidatingException

The ready-to-throw exception.

Wraps this error object in an exception.

Public / Attributes

Error​Type


public readonly attribute ErrorType → (ParsingErrorType)

The parser error type.

Protected / Constructors

Parsing​Error


protected constructor ParsingError → (3)

message in : string

The error message.

range in : RangeI

The character range in the input code this parser errors refers to.

errorType in : ParsingErrorType

Message that describes this error.

Creates a new instance of ParsingError.