1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Typed errors surfaced by session stores. use thiserror::Error; /// Errors surfaced by session-store implementations. #[derive(Debug, Error)] pub enum SessionError { /// Serialising or deserialising messages failed. #[error("session serialization: {0}")] Serialization(#[from] serde_json::Error), /// Underlying storage layer (sqlite, filesystem) failed. #[error("session storage: {0}")] Storage(String), }