fabriqerr

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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

type NotFoundError struct {
	Entity string
	ID     string
}

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

type VersionConflictError struct {
	Aggregate string
	AggID     string
	Expected  int64
	Actual    int64
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL