agentic_robotics_core/
error.rs1use thiserror::Error;
4
5pub type Result<T> = std::result::Result<T, Error>;
6
7#[derive(Error, Debug)]
8pub enum Error {
9 #[error("Zenoh error: {0}")]
10 Zenoh(String),
11
12 #[error("Serialization error: {0}")]
13 Serialization(String),
14
15 #[error("Connection error: {0}")]
16 Connection(String),
17
18 #[error("Timeout error: {0}")]
19 Timeout(String),
20
21 #[error("Configuration error: {0}")]
22 Configuration(String),
23
24 #[error("I/O error: {0}")]
25 Io(#[from] std::io::Error),
26
27 #[error("Other error: {0}")]
28 Other(#[from] anyhow::Error),
29}