package domain import "errors" // Common domain-level errors that can be used across repositories and services. var ( ErrEntityNotFound = errors.New("entity not found") ErrInvalidID = errors.New("invalid ID: cannot be zero") ErrInvalidInput = errors.New("invalid input parameters") ErrDatabaseOperation = errors.New("database operation failed") ErrContextRequired = errors.New("context is required") ErrTransactionFailed = errors.New("transaction failed") ErrUnauthorized = errors.New("unauthorized") ErrForbidden = errors.New("forbidden") ErrValidation = errors.New("validation failed") ErrConflict = errors.New("conflict with existing resource") )