MCPcopy
hub / github.com/redis/go-redis / IsExecAbortError

Function IsExecAbortError

error.go:357–359  ·  view source on GitHub ↗

IsExecAbortError checks if an error is a Redis EXECABORT error, even if wrapped. EXECABORT errors occur when a transaction is aborted.

(err error)

Source from the content-addressed store, hash-verified

355// IsExecAbortError checks if an error is a Redis EXECABORT error, even if wrapped.
356// EXECABORT errors occur when a transaction is aborted.
357func IsExecAbortError(err error) bool {
358 return proto.IsExecAbortError(err)
359}
360
361// IsOOMError checks if an error is a Redis OOM (Out Of Memory) error, even if wrapped.
362// OOM errors occur when Redis is out of memory.

Callers 1

TxPipelineMethod · 0.70

Calls 1

IsExecAbortErrorFunction · 0.92

Tested by

no test coverage detected