MCPcopy Create free account
hub / github.com/apache/devlake / IsErrorNotFound

Method IsErrorNotFound

backend/impls/dalgorm/dalgorm.go:490–492  ·  view source on GitHub ↗

IsErrorNotFound checking if the sql error is not found.

(err error)

Source from the content-addressed store, hash-verified

488
489// IsErrorNotFound checking if the sql error is not found.
490func (d *Dalgorm) IsErrorNotFound(err error) bool {
491 return errors.Is(err, gorm.ErrRecordNotFound)
492}
493
494// IsDuplicationError checking if the sql error is not found.
495func (d *Dalgorm) IsDuplicationError(err error) bool {

Callers 1

convertGormErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected