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.

copy

instantiate

(Fn [(Ref QueueError a)] QueueError)

copies a QueueError.

delete

instantiate

(Fn [QueueError] ())

deletes a QueueError. Should usually not be called manually.

index

instantiate

(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.

init

instantiate

(Fn [Int, String] QueueError)

creates a QueueError.

message

instantiate

(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'.

prn

instantiate

(Fn [(Ref QueueError a)] String)

converts a QueueError to a string.

set-index

instantiate

(Fn [QueueError, Int] QueueError)

sets the index property of a QueueError.

set-index!

instantiate

(Fn [(Ref QueueError a), Int] ())

sets the index property of a QueueError in place.

set-message

instantiate

(Fn [QueueError, String] QueueError)

sets the message property of a QueueError.

set-message!

instantiate

(Fn [(Ref QueueError a), String] ())

sets the message property of a QueueError in place.

str

instantiate

(Fn [(Ref QueueError a)] String)

converts a QueueError to a string.

update-index

instantiate

(Fn [QueueError, (Ref (Fn [Int] Int a) b)] QueueError)

updates the index property of a QueueError using a function f.

update-message

instantiate

(Fn [QueueError, (Ref (Fn [String] String a) b)] QueueError)

updates the message property of a QueueError using a function f.