QueueError
is one command the server refused to queue during a
MULTI/EXEC transaction. The refusal happens before EXEC, and it costs the
whole batch: none of the commands run.
QueueFailed carries one of these per
refused command, in batch order.
delete
(Fn [QueueError] ())
deletes a QueueError. Should usually not be called manually.
index
(Fn [(Ref QueueError a)] (Ref Int a))
the refused command’s position in the batch, counting from zero in the order the commands were added.
message
(Fn [(Ref QueueError a)] (Ref String a))
the server’s error text for the refused command, without RESP
framing — e.g. ERR unknown command 'FOO'.
set-index!
(Fn [(Ref QueueError a), Int] ())
sets the index property of a QueueError in place.
set-message
(Fn [QueueError, String] QueueError)
sets the message property of a QueueError.
set-message!
(Fn [(Ref QueueError a), String] ())
sets the message property of a QueueError in place.
update-index
(Fn [QueueError, (Ref (Fn [Int] Int a) b)] QueueError)
updates the index property of a QueueError using a function f.
update-message
(Fn [QueueError, (Ref (Fn [String] String a) b)] QueueError)
updates the message property of a QueueError using a function f.