JSON.PatchError

wraps a PatchErrorKind together with the index of the operation that failed, or -1 when the patch document itself is not an array.

copy

instantiate

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

copies a PatchError.

delete

instantiate

(Fn [JSON.PatchError] ())

deletes a PatchError. Should usually not be called manually.

index

instantiate

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

gets the index property of a PatchError.

init

instantiate

(Fn [Int, JSON.PatchErrorKind] JSON.PatchError)

creates a PatchError.

kind

instantiate

(Fn [(Ref JSON.PatchError a)] (Ref JSON.PatchErrorKind a))

gets the kind property of a PatchError.

prn

instantiate

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

converts a PatchError to a string.

set-index

instantiate

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

sets the index property of a PatchError.

set-index!

instantiate

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

sets the index property of a PatchError in place.

set-kind

instantiate

(Fn [JSON.PatchError, JSON.PatchErrorKind] JSON.PatchError)

sets the kind property of a PatchError.

set-kind!

instantiate

(Fn [(Ref JSON.PatchError a), JSON.PatchErrorKind] ())

sets the kind property of a PatchError in place.

str

instantiate

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

converts a PatchError to a string.

update-index

instantiate

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

updates the index property of a JSON.PatchError using a function f.

update-kind

instantiate

(Fn [JSON.PatchError, (Ref (Fn [JSON.PatchErrorKind] JSON.PatchErrorKind a) b)] JSON.PatchError)

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