JSON.ParseError

wraps a ParseErrorKind together with the byte position in the input where the error was detected.

copy

instantiate

(Fn [(Ref JSON.ParseError a)] JSON.ParseError)

copies a ParseError.

delete

instantiate

(Fn [JSON.ParseError] ())

deletes a ParseError. Should usually not be called manually.

init

instantiate

(Fn [Int, JSON.ParseErrorKind] JSON.ParseError)

creates a ParseError.

kind

instantiate

(Fn [(Ref JSON.ParseError a)] (Ref JSON.ParseErrorKind a))

gets the kind property of a ParseError.

position

instantiate

(Fn [(Ref JSON.ParseError a)] (Ref Int a))

gets the position property of a ParseError.

prn

instantiate

(Fn [(Ref JSON.ParseError a)] String)

converts a ParseError to a string.

set-kind

instantiate

(Fn [JSON.ParseError, JSON.ParseErrorKind] JSON.ParseError)

sets the kind property of a ParseError.

set-kind!

instantiate

(Fn [(Ref JSON.ParseError a), JSON.ParseErrorKind] ())

sets the kind property of a ParseError in place.

set-position

instantiate

(Fn [JSON.ParseError, Int] JSON.ParseError)

sets the position property of a ParseError.

set-position!

instantiate

(Fn [(Ref JSON.ParseError a), Int] ())

sets the position property of a ParseError in place.

str

instantiate

(Fn [(Ref JSON.ParseError a)] String)

converts a ParseError to a string.

update-kind

instantiate

(Fn [JSON.ParseError, (Ref (Fn [JSON.ParseErrorKind] JSON.ParseErrorKind a) b)] JSON.ParseError)

updates the kind property of a JSON.ParseError using a function f.

update-position

instantiate

(Fn [JSON.ParseError, (Ref (Fn [Int] Int a) b)] JSON.ParseError)

updates the position property of a JSON.ParseError using a function f.