The constructor for Gobstones Lexer errors.
A string indicating where to locate the concrete error message.
Its value is expected to be one of the error fields corresponding to the
field Lexer.error
of the the Locale of the component.
Optional
interpolations: Record<string, any>A record indicating values for interpolations used in the value associated with
the key
given.
Its value is expected to match with the arguments of the corresponding key in the
Locale of the component.
It may be undefined if there are none, in which case the empty record is used.
Optional
span: SpanThe span in the source where the token where error was detected started. It may be undefined, in which case an Unknown span is used (with both start and end as UnknownPosition).
A specialization of GError for the use of Gobstones lexer.