Expand description
Application-layer wrapper types for domain error types
These wrapper types shield the SDK’s public API from internal domain error
types. They mirror the domain types structurally but live in the application
layer, so SDK consumers never need to import from crate::domain.
§Design Rationale
Domain errors (RepositoryError, StateTypeError, ReleaseStep) are
implementation details of the persistence and state-machine layers.
Exposing them directly in the SDK’s public error surface would:
- Require SDK consumers to add
#[allow(unused_imports)]for domain modules - Make internal domain changes breaking changes for SDK consumers
- Violate the DDD Dependency Rule (presentation ← application, not ← domain)
The From conversions on each *CommandHandlerError use these wrappers so
that application handler code using ? on domain-returning calls continues
to work unchanged.
Structs§
- Invalid
State Error - Application-layer wrapper for domain
StateTypeError.
Enums§
- Persistence
Error - Application-layer wrapper for domain
RepositoryError. - Release
Workflow Step - Application-layer representation of a release workflow step.