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

Function NewValidationError

admin/database/errors.go:25–27  ·  view source on GitHub ↗

NewValidationError returns a new error that wraps ErrValidation so checks with errors.Is(...) work.

(msg string)

Source from the content-addressed store, hash-verified

23
24// NewValidationError returns a new error that wraps ErrValidation so checks with errors.Is(...) work.
25func NewValidationError(msg string) error {
26 return &wrappedError{msg: msg, err: ErrValidation}
27}
28
29type wrappedError struct {
30 msg string

Callers 1

ValidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected