Expand description
Types for working with errors produced by es-entity.
Structs§
- Cursor
Destructure Error - NotFound
- A repo op that requires a row (
find_by_*) found none. There is noNotFoundrejection — callers that tolerate absence usemaybe_find_by_*, which returnsOptioninstead. Construct one and propagate it with?: it converts into anyerrlanes::Faultorerrlanes::Fail<D>asFatal(Invariant).
Enums§
- Constraint
Kind - The kind of database constraint behind a classified
ConstraintViolation. - Entity
Hydration Error - Error type for entity hydration failures (reconstructing entities from events).
Type Aliases§
- Repo
Read Error - Repository read failures: transient infrastructure faults or fatal failures.
Reads cannot reject or deny; optional reads represent absence with
None. - Repo
Write Error - Repository write failures, with
Ccarrying the typed constraint violation. Writes may reject, fail transiently, or fail fatally, but cannot deny.