ag_session/error.rs
1//! Errors returned by the programmatic session API.
2
3/// Stable error returned by [`crate::SessionService`] operations.
4#[derive(Clone, Debug, Eq, PartialEq, thiserror::Error)]
5pub enum SessionError {
6 /// Persisted session data could not be converted into the public model.
7 #[error("Invalid session data: {0}")]
8 InvalidData(String),
9 /// The requested session does not exist.
10 #[error("Session not found")]
11 NotFound,
12 /// The host session workflow rejected or failed the requested operation.
13 #[error("{0}")]
14 Operation(String),
15}