slate-test-1770505673/services/preferences-api/internal/domain/errors.go
rdev-worker 868f79c67a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
build: /implement-feature user-preferences
2026-02-07 23:47:42 +00:00

16 lines
504 B
Go

// Package domain contains pure domain models with no external dependencies.
package domain
import "errors"
var (
// ErrUnknownKey indicates a preference key is not in the allowed set.
ErrUnknownKey = errors.New("unknown preference key")
// ErrInvalidValue indicates a preference value is not valid for the given key.
ErrInvalidValue = errors.New("invalid preference value")
// ErrForbidden indicates the user is not allowed to access the resource.
ErrForbidden = errors.New("access denied")
)