slack5-1770544098/services/preferences-api/internal/domain/errors.go
rdev-worker a31f57382b
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
build: /implement-feature user-preferences
2026-02-08 10:47:23 +00:00

19 lines
713 B
Go

// Package domain contains pure domain models with no external dependencies.
// These types represent the core business concepts of the service.
package domain
import "errors"
// Domain errors - these are business-level errors that should be translated
// to appropriate HTTP status codes by the handler layer.
var (
// ErrNotFound indicates a requested resource does not exist.
ErrNotFound = errors.New("not found")
// ErrInvalidPreferenceKey indicates an unknown preference key was provided.
ErrInvalidPreferenceKey = errors.New("invalid preference key")
// ErrInvalidPreferenceValue indicates a preference value failed validation.
ErrInvalidPreferenceValue = errors.New("invalid preference value")
)