errors

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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