errors

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound     = errors.New("not found")
	ErrInvalidInput = errors.New("invalid input")

	// ErrInvalidRelation flags a relation name outside the accepted set for its
	// surface. It is a distinct sentinel that still wraps ErrInvalidInput (so
	// existing invalid-input handling keeps matching), letting the ACL layer be
	// the single validator while HTTP callers still map a malformed relation to
	// 400 and an authorization/ceiling denial (a bare ErrInvalidInput) to 403.
	// The "%w" wrap adds no text, so wrapped messages read exactly as before.
	ErrInvalidRelation = fmt.Errorf("%w", ErrInvalidInput)
)

Sentinel errors for the domain layer: repos return raw DB errors, services wrap in these, handlers map to responses.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL