smos_application/errors/mod.rs
1//! Error hierarchy at the application/adapter boundary.
2//!
3//! Three independent leaves (`RepoError`, `ProviderError`, `UpstreamError`)
4//! model the three distinct failure modes (persistence, ML provider, LLM
5//! upstream) so adapters can return the precise shape and the umbrella
6//! `UseCaseError` can wrap any of them with `#[from]`.
7
8pub mod provider_error;
9pub mod repo_error;
10pub mod upstream_error;
11pub mod use_case_error;
12
13pub use provider_error::ProviderError;
14pub use repo_error::RepoError;
15pub use upstream_error::UpstreamError;
16pub use use_case_error::UseCaseError;