#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("invalid Marona App configuration: {0}")]
Configuration(String),
#[error("tool `{0}` is already registered")]
DuplicateTool(String),
#[error("tool `{0}` is not registered")]
UnknownTool(String),
#[error("tool execution failed: {0}")]
Tool(String),
#[error("HTTP request failed: {0}")]
Http(#[from] reqwest::Error),
#[error("I/O failed: {0}")]
Io(#[from] std::io::Error),
#[error("JSON failed: {0}")]
Json(#[from] serde_json::Error),
}
pub type Result<T> = std::result::Result<T, Error>;