1#[derive(Debug, thiserror::Error)]
5pub enum ReplError {
6 #[error("I/O error: {0}")]
8 Io(#[from] std::io::Error),
9
10 #[error("Agent error: {0}")]
12 Agent(#[from] opendev_agents::AgentError),
13
14 #[error("Tool error: {0}")]
16 Tool(#[from] opendev_tools_core::ToolError),
17
18 #[error("Session error: {0}")]
20 Session(String),
21
22 #[error("Unknown command: {0}")]
24 UnknownCommand(String),
25
26 #[error("Interrupted")]
28 Interrupted,
29
30 #[error("End of input")]
32 Eof,
33
34 #[error("{0}")]
36 Other(String),
37}