YuriTemplate.ParseError exception (yuri_template v1.1.0) View Source

Exception for nimble_parsec errors.

Link to this section Summary

Types

Line index (one based) and cursor index (zero based).

Link to this section Types

Specs

position() :: {line :: pos_integer(), cursor :: non_neg_integer()}

Line index (one based) and cursor index (zero based).

Link to this section Functions

Link to this function

new(message, rest, context, position, offset)

View Source

Specs

Constructor for YuriTemplate.ParseError.

Parameters

  • message: the textual representation of the error.

  • rest: unparsed fragment of the string.

  • position: the position in the string where parsing stopped.

  • offset: byte offset of the position.