Skip to main content

aether_cli/
error.rs

1use aether_auth::OAuthError;
2use std::io;
3use thiserror::Error;
4
5#[derive(Debug, Error)]
6pub enum CliError {
7    #[error("No prompt provided. Pass a prompt as an argument or pipe via stdin.")]
8    NoPrompt,
9    #[error("{0}")]
10    ConflictingArgs(String),
11    #[error("Model error: {0}")]
12    ModelError(String),
13    #[error("MCP error: {0}")]
14    McpError(String),
15    #[error("IO error: {0}")]
16    IoError(#[from] io::Error),
17    #[error("Agent error: {0}")]
18    AgentError(String),
19    #[error("Credential store error: {0}")]
20    CredentialStore(#[from] OAuthError),
21}