MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / IsNotFound

Function IsNotFound

app/controlplane/pkg/data/ent/ent.go:245–251  ·  view source on GitHub ↗

IsNotFound returns a boolean indicating whether the error is a not found error.

(err error)

Source from the content-addressed store, hash-verified

243
244// IsNotFound returns a boolean indicating whether the error is a not found error.
245func IsNotFound(err error) bool {
246 if err == nil {
247 return false
248 }
249 var e *NotFoundError
250 return errors.As(err, &e)
251}
252
253// MaskNotFound masks not found error.
254func MaskNotFound(err error) error {

Callers 15

CreateMethod · 0.92
GetOrgScopedMethod · 0.92
FindByIDMethod · 0.92
SaveMethod · 0.92
ReadMethod · 0.92
ResetMethod · 0.92
FindByIDInOrgMethod · 0.92
FindByIDMethod · 0.92
RevokeMethod · 0.92
PendingInvitationMethod · 0.92
FindByIDMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected