hopr_transport_path/
errors.rs1use std::sync::Arc;
2
3use hopr_types::internal::errors::PathError;
4
5pub type Result<T> = std::result::Result<T, PathPlannerError>;
6
7#[derive(thiserror::Error, Debug)]
9pub enum PathPlannerError {
10 #[error("path error: {0}")]
11 Path(#[from] PathError),
12
13 #[error("{0}")]
14 Other(#[from] anyhow::Error),
15
16 #[error("surb: {0}")]
17 Surb(String),
18
19 #[error("api: {0}")]
20 Api(String),
21
22 #[error("cache error: {0}")]
23 CacheError(#[from] Arc<Self>),
24}