MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / conditionFailureError

Function conditionFailureError

redimo.go:235–251  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

233}
234
235func conditionFailureError(err error) bool {
236 if err == nil {
237 return false
238 }
239
240 if aerr, ok := err.(awserr.Error); ok {
241 switch aerr.Code() {
242 case dynamodb.ErrCodeConditionalCheckFailedException,
243 dynamodb.ErrCodeTransactionInProgressException,
244 dynamodb.ErrCodeTransactionConflictException,
245 dynamodb.ErrCodeTransactionCanceledException:
246 return true
247 }
248 }
249
250 return false
251}

Callers 9

XADDMethod · 0.85
xInitMethod · 0.85
XCLAIMMethod · 0.85
XREADGROUPMethod · 0.85
SETMethod · 0.85
msetMethod · 0.85
SMOVEMethod · 0.85
ZADDMethod · 0.85
HSETNXMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected