agent_storage/conversation/
conversation_store_error.rs1use super::ConversationId;
4use std::io;
5use thiserror::Error;
6
7#[derive(Debug, Error)]
8pub enum ConversationStoreError {
9 #[error("conversation storage I/O failed: {0}")]
10 Io(#[from] io::Error),
11 #[error("conversation serialization failed: {0}")]
12 Serialization(#[from] serde_json::Error),
13 #[error("conversation database operation failed: {0}")]
14 Sqlite(String),
15 #[error("conversation {0} was not found")]
16 NotFound(ConversationId),
17 #[error("conversation {conversation_id} does not belong to owner '{owner}'")]
18 OwnerMismatch {
19 conversation_id: ConversationId,
20 owner: String,
21 },
22 #[error("conversation owner must not be empty")]
23 EmptyOwner,
24 #[error("agent name must not be empty")]
25 EmptyAgent,
26 #[error("conversation title must not be empty")]
27 EmptyTitle,
28}