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.
delete
(Fn [JSON.PatchError] ())
deletes a PatchError. Should usually not be called manually.
index
(Fn [(Ref JSON.PatchError a)] (Ref Int a))
gets the index property of a PatchError.
kind
(Fn [(Ref JSON.PatchError a)] (Ref JSON.PatchErrorKind a))
gets the kind property of a PatchError.
set-index
(Fn [JSON.PatchError, Int] JSON.PatchError)
sets the index property of a PatchError.
set-index!
(Fn [(Ref JSON.PatchError a), Int] ())
sets the index property of a PatchError in place.
set-kind
(Fn [JSON.PatchError, JSON.PatchErrorKind] JSON.PatchError)
sets the kind property of a PatchError.
set-kind!
(Fn [(Ref JSON.PatchError a), JSON.PatchErrorKind] ())
sets the kind property of a PatchError in place.
update-index
(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
(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.