Skip to main content

mcp_session_memory/
error.rs

1#[derive(Debug, thiserror::Error)]
2pub enum MemoryError {
3    #[error("not found: {0}")]
4    NotFound(String),
5    #[error("access denied: {0}")]
6    AccessDenied(String),
7    #[error("session not resumable: {0}")]
8    NotResumable(String),
9    #[error("deletion blocked: {0}")]
10    DeletionBlocked(String),
11    #[error("internal error: {0}")]
12    Internal(String),
13}