Text of glide.valkey.io › languages › python › api › reference › glide_shared › exceptions as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

exceptions - GLIDE for Valkey - API Documentation

Skip to content glide_shared.exceptions GlideError Bases: Exception Base class for errors. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 8 9 10 11 12 13 14 15 16 17 class GlideError ( Exception ): """ Base class for errors. """ def __init__ ( self , message : Optional [ str ] = None ): super () . __init__ ( message or "No error message provided" ) def name ( self ): return self . __class__ . __name__ ClosingError Bases: GlideError Errors that report that the client has closed and is no longer usable.

Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 20 21 22 23 24 25 class ClosingError ( GlideError ): """ Errors that report that the client has closed and is no longer usable. """ pass RequestError Bases: GlideError Errors that were reported during a request. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 28 29 30 31 32 33 class RequestError ( GlideError ): """ Errors that were reported during a request.

""" pass TimeoutError Bases: RequestError Errors that are thrown when a request times out. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 36 37 38 39 40 41 class TimeoutError ( RequestError ): """ Errors that are thrown when a request times out. """ pass ExecAbortError Bases: RequestError Errors that are thrown when a transaction is aborted. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 44 45 46 47 48 49 class ExecAbortError ( RequestError ): """ Errors that are thrown when a transaction is aborted.

""" pass ConnectionError Bases: RequestError Errors that are thrown when a connection disconnects. These errors can be temporary, as the client will attempt to reconnect. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 52 53 54 55 56 57 58 class ConnectionError ( RequestError ): """ Errors that are thrown when a connection disconnects. These errors can be temporary, as the client will attempt to reconnect.

""" pass ConfigurationError Bases: RequestError Errors that are thrown when a request cannot be completed in current configuration settings. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 61 62 63 64 65 66 class ConfigurationError ( RequestError ): """ Errors that are thrown when a request cannot be completed in current configuration settings. """ pass CircuitBreakerError Bases: RequestError Thrown when a request is rejected because the client circuit breaker is open.

Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 69 70 71 72 73 74 class CircuitBreakerError ( RequestError ): """ Thrown when a request is rejected because the client circuit breaker is open. """ pass RdmaError Bases: RequestError Thrown when an RDMA transfer cannot be completed or RDMA is not supported. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 77 78 79 80 81 82 class RdmaError ( RequestError ): """ Thrown when an RDMA transfer cannot be completed or RDMA is not supported.

""" pass LoggerError Bases: GlideError Errors that are thrown when the logger has an error initializing. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 85 86 87 88 89 90 class LoggerError ( GlideError ): """ Errors that are thrown when the logger has an error initializing. """ pass get_connection_error_class ( error_type , default = ClosingError ) The exception to raise for a failed client creation reported by the FFI.

The core's configuration validation raises ConfigurationError; any other failure raises default , so its type is unchanged. Source code in doc-gen/valkey-glide/python/glide-shared/glide_shared/exceptions.py 113 114 115 116 117 118 119 120 121 122 123 124 def get_connection_error_class ( error_type : int , default : Type [ Exception ] = ClosingError ) -> Type [ Exception ]: """ The exception to raise for a failed client creation reported by the FFI.

The core's configuration validation raises ConfigurationError; any other failure raises `default`, so its type is unchanged. """ if error_type == _CONNECTION_ERROR_TYPE_CONFIGURATION : return ConfigurationError return default