slack5-1770606136/services/preferences-api/internal/domain/errors.go
rdev-worker a0ff64af5e
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature user-preferences
2026-02-09 03:30:01 +00:00

16 lines
578 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 (
// ErrInvalidUserID indicates the user ID is invalid.
ErrInvalidUserID = errors.New("invalid user ID")
// ErrInvalidPreferenceValue indicates one or more preference values are invalid.
ErrInvalidPreferenceValue = errors.New("invalid preference value")
)