Skip to main content

Module errors

Module errors 

Source
Expand description

Error hierarchy at the application/adapter boundary.

Three independent leaves (RepoError, ProviderError, UpstreamError) model the three distinct failure modes (persistence, ML provider, LLM upstream) so adapters can return the precise shape and the umbrella UseCaseError can wrap any of them with #[from].

Re-exports§

pub use provider_error::ProviderError;
pub use repo_error::RepoError;
pub use upstream_error::UpstreamError;
pub use use_case_error::UseCaseError;

Modules§

provider_error
Provider-layer errors.
repo_error
Persistence-layer errors.
upstream_error
Upstream (LLM proxy) errors.
use_case_error
Umbrella use-case error.