class

Mica::ParseError

Inherits Mica::Error < Exception < Reference < Object

Raised when input does not follow its format's grammar.

position says where: the 0-based byte offset in the original input, and for text formats the 1-based line and column (the column counts characters). Formats without lines (binary formats) report line and column 0.

Constructors

new(detail : String, position : Core::Position)
Source

Instance methods

byte_offset

Returns the 0-based byte offset in the original input.

Source
column_number

Returns the 1-based column in characters, or 0 for formats without lines.

Source
detail

The message without the position suffix.

Source
line_number

Returns the 1-based line, or 0 for formats without lines.

Source
position

Where the error was detected.

Source