Lyricdev
GitHub

struct ParseError

pub struct ParseError :: [Error]

Conforms to Error.

The error parse throws when a text is not a value of the type.

The text was empty, was not of the type's form, or named a number beyond the type's range.

Fields

pub kind: ParseErrorKind

Why the text was refused.

pub detail: string = ""

What the parser can say beyond the kind, such as what it expected where it stopped.

Empty where it says nothing (the number parsers); filled by Uri.parse, the address parsers and the time parsers.

pub offset: ?int = null

The byte offset in the text the refusal points at, where the parser knows one.

Methods

pub fn message(): string