steer_cli/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum Error {
5 #[error("Configuration error: {0}")]
6 Config(String),
7
8 #[error("IO error: {0}")]
9 Io(#[from] std::io::Error),
10
11 #[error("Failed to serialize preferences: {0}")]
12 Serialization(#[from] toml::ser::Error),
13
14 #[error("Process execution failed: {0}")]
15 Process(String),
16
17 #[error(transparent)]
18 Core(#[from] steer_core::error::Error),
19}