MCPcopy
hub / github.com/crowdsecurity/crowdsec / IsNotFound

Function IsNotFound

pkg/database/ent/ent.go:227–233  ·  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

225
226// IsNotFound returns a boolean indicating whether the error is a not found error.
227func IsNotFound(err error) bool {
228 if err == nil {
229 return false
230 }
231 var e *NotFoundError
232 return errors.As(err, &e)
233}
234
235// MaskNotFound masks not found error.
236func MaskNotFound(err error) error {

Callers 15

GetAllowListMethod · 0.92
CreateOrUpdateAlertMethod · 0.92
GetAlertByIDMethod · 0.92
GetConfigItemMethod · 0.92
ManagementCmdFunction · 0.92
updateOneAllowlistMethod · 0.92
authTLSMethod · 0.92
authPlainMethod · 0.92
MaskNotFoundFunction · 0.85
FirstXMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…