yarli_cli/yarli-memory/src/
error.rs1use thiserror::Error;
4
5#[derive(Error, Debug)]
7pub enum MemoryError {
8 #[error("memory not found: {0}")]
10 NotFound(String),
11
12 #[error("scope not found: project={project}, scope={scope}")]
14 ScopeNotFound { project: String, scope: String },
15
16 #[error("connection failed: {0}")]
18 ConnectionFailed(String),
19
20 #[error("operation timed out: {0}")]
22 Timeout(String),
23
24 #[error("backend error: {0}")]
26 Backend(String),
27
28 #[error("redaction required: content may contain secrets")]
30 RedactionRequired,
31
32 #[error("scope is closed: {0}")]
34 ScopeClosed(String),
35
36 #[error("serialization error: {0}")]
38 Serialization(String),
39
40 #[error("invalid argument: {0}")]
42 InvalidArgument(String),
43}