MCPcopy Index your code
hub / github.com/rilldata/rill / NewNotFoundError

Function NewNotFoundError

admin/database/errors.go:9–11  ·  view source on GitHub ↗

NewNotFoundError returns a new error that wraps ErrNotFound so checks with errors.Is(...) work.

(msg string)

Source from the content-addressed store, hash-verified

7
8// NewNotFoundError returns a new error that wraps ErrNotFound so checks with errors.Is(...) work.
9func NewNotFoundError(msg string) error {
10 return &wrappedError{msg: msg, err: ErrNotFound}
11}
12
13// ErrNotUnique is returned when a unique constraint is violated.
14var ErrNotUnique = errors.New("database: violates unique constraint")

Callers 1

parseErrFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected