Documentation
¶
Overview ¶
Package fabriqerr holds the canonical shared error values used across fabriq's core packages. The root fabriq package aliases everything here (fabriq.ErrNotFound, fabriq.VersionConflictError, ...) — application code should depend on those aliases; core and adapter packages depend on this leaf so the dependency direction stays root -> core.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound: aggregate or row absent within the tenant's scope. ErrNotFound = errors.New("fabriq: not found") // ErrVersionConflict: optimistic-concurrency mismatch. ErrVersionConflict = errors.New("fabriq: version conflict") // ErrProjectionLag: WaitForProjection deadline expired. ErrProjectionLag = errors.New("fabriq: projection lagging") // ErrStoreNotConfigured: capability port without a configured backend. ErrStoreNotConfigured = errors.New("fabriq: store not configured") )
Functions ¶
This section is empty.
Types ¶
type NotFoundError ¶
NotFoundError reports a missing aggregate within the tenant's scope.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
func (*NotFoundError) Is ¶
func (e *NotFoundError) Is(target error) bool
Is makes errors.Is(err, ErrNotFound) match.
type VersionConflictError ¶
VersionConflictError reports an optimistic-concurrency failure.
func (*VersionConflictError) Error ¶
func (e *VersionConflictError) Error() string
func (*VersionConflictError) Is ¶
func (e *VersionConflictError) Is(target error) bool
Is makes errors.Is(err, ErrVersionConflict) match.
Click to show internal directories.
Click to hide internal directories.