limit_cli/error.rs
1#[allow(clippy::enum_variant_names)]
2#[derive(thiserror::Error, Debug)]
3pub enum CliError {
4 #[error("IO error: {0}")]
5 IoError(#[from] std::io::Error),
6 #[error("Readline error: {0}")]
7 ReadlineError(#[from] rustyline::error::ReadlineError),
8 #[error("Config error: {0}")]
9 ConfigError(String),
10 #[error("Agent error: {0}")]
11 AgentError(#[from] limit_agent::error::AgentError),
12}