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

Function isRedisError

error.go:174–183  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

172}
173
174func isRedisError(err error) bool {
175 // Check if error implements the Error interface (works with wrapped errors)
176 var redisErr Error
177 if errors.As(err, &redisErr) {
178 return true
179 }
180 // Also check for proto.RedisError specifically
181 var protoRedisErr proto.RedisError
182 return errors.As(err, &protoRedisErr)
183}
184
185func isBadConn(err error, allowTimeout bool, addr string) bool {
186 if err == nil {

Callers 7

initConnMethod · 0.85
pipelineReadCmdsMethod · 0.85
txPipelineReadQueuedMethod · 0.85
pipelineReadCmdsMethod · 0.85
txPipelineReadQueuedMethod · 0.85
isBadConnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected