1use std::io;
6
7use thiserror::Error;
8
9#[derive(Error, Debug)]
11pub enum OxydeError {
12 #[error("Configuration error: {0}")]
14 ConfigurationError(String),
15
16 #[error("Memory error: {0}")]
18 MemoryError(String),
19
20 #[error("Inference error: {0}")]
22 InferenceError(String),
23
24 #[error("Intent error: {0}")]
26 IntentError(String),
27
28 #[error("Behavior error: {0}")]
30 BehaviorError(String),
31
32 #[error("Binding error: {0}")]
34 BindingError(String),
35
36 #[error("IO error: {0}")]
38 IoError(#[from] io::Error),
39
40 #[error("Serialization error: {0}")]
42 SerializationError(#[from] serde_json::Error),
43
44 #[error("Request error: {0}")]
46 RequestError(String),
47
48 #[error("CLI error: {0}")]
50 CliError(String),
51}
52
53