Skip to content

ParseError

1 min read

No import is needed.

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

ParseError

Parse / format failure implementing Error (JSON, numbers, URLs, ISO-8601, …).

public class ParseError: Error

constructor

Creates an error with machine code and message.

public constructor(code: string, message: string)

message

Human-readable explanation of the parse failure, suitable for logs and error output.

public fun message(): string

code

Stable machine code (typically EPARSE).

public fun code(): string

invalid

Generic invalid-input parse failure.

public static fun invalid(message: string): ParseError