Farkle


ParserApplicationException Type

A parsing error that did not originate from the parser, but from user code during post-processing.

Exceptions of this type during post-processing will be specially treated by the runtime Farkle API as UserErrors. F# users can use the error or errorf functions in Farkle.Builder.

Constructors

Constructor Description

ParserApplicationException(msg)

Full Usage: ParserApplicationException(msg)

Parameters:
    msg : string

Returns: ParserApplicationException

Creates an exception without a custom error position.

msg : string
Returns: ParserApplicationException

ParserApplicationException(msg, pos)

Full Usage: ParserApplicationException(msg, pos)

Parameters:
Returns: ParserApplicationException

Creates an exception with a custom error position.

msg : string
pos : Position
Returns: ParserApplicationException

Instance members

Instance member Description

this.Position

Full Usage: this.Position

Returns: byref<Nullable<Position>, In>

The optionally defined position of the error. If not set, it will default to the starting position of the token that was being created.

Returns: byref<Nullable<Position>, In>