← Standard library

ParseError

error ParseError
import ParseError from Wax;

A numeric parse failure with a byte position and structured reason. Positions refer to the original input bytes, not Unicode character indices.

ParseError.wax:49

Inherits from Error. Follow these links for inherited members.

Members

positionfield

public readonly int32 position

Zero-based byte offset at which parsing failed.

ParseError.wax:53

kindfield

public readonly ParseErrorKind kind

The structured parse failure reason.

ParseError.wax:57

constructorconstructor

public constructor (int32 pos, ParseErrorKind k)

Creates the error with the supplied failure position and diagnostic information.

ParseError.wax:62