secure_session/error.rs
1//! Error types and utilities
2
3/// Error types for session management operations
4#[derive(Debug, Eq, PartialEq, Clone)]
5pub enum SessionError {
6 /// Error produced when a session fails to validate. This typically implies intentional
7 /// client-side tampering.
8 ValidationError,
9
10 /// There was an internal error that prevented the session from being read or written.
11 InternalError,
12}
13
14/// Error for invalid session configurations.
15#[derive(Debug, Eq, PartialEq, Clone)]
16pub enum SessionConfigError {
17 /// An unknown error occurred.
18 Undefined,
19}