Exceptions
Complete exception reference for the Session library. All exceptions accept an optional cause : Exception? for wrapping underlying errors.
Exception Reference
SessionExpiredException
Exception
--
"Session has expired"
SessionNotFoundException
Exception
--
"Session not found"
SessionCorruptionException
Exception
--
"Session data is corrupted"
StorageConnectionException
Exception
--
"Storage connection failed"
SessionValidationException
Exception
--
"Session validation failed"
SessionSerializationException
Exception
--
"Session serialization failed"
SessionEncryptionException
Exception
--
"Session encryption/decryption failed"
CookieSizeExceededException
Exception
actual_size : Int32, max_size : Int32
"Cookie size {n} bytes exceeds maximum..."
SessionBindingException
Exception
binding_type : String
"Session binding validation failed for {type}"
InsecureSecretException
Exception
--
"Insecure session secret configuration"
CircuitOpenException
Exception
time_until_retry : Time::Span
"Circuit breaker is open. Retry in {n} seconds"
ConnectionPoolTimeoutException
Exception
--
"Failed to acquire connection from pool..."
ClusterException
Exception
--
"Cluster operation failed"
ClusterConnectionException
ClusterException
--
"Cluster connection failed"
ClusterSubscriptionException
ClusterException
--
"Cluster subscription failed"
Usage Pattern
Exceptions with Extra Properties
Cause Chaining
All exceptions preserve the underlying cause:
See Also
Error Handling -- Graceful degradation patterns
Store API -- Which operations raise which exceptions
Last updated
Was this helpful?