Source code for redis.exceptions

"Core exceptions raised by the Redis client"

[docs]class RedisError(Exception): pass
[docs]class ConnectionError(RedisError): pass
[docs]class TimeoutError(RedisError): pass
[docs]class AuthenticationError(ConnectionError): pass
[docs]class BusyLoadingError(ConnectionError): pass
[docs]class InvalidResponse(RedisError): pass
[docs]class ResponseError(RedisError): pass
[docs]class DataError(RedisError): pass
[docs]class PubSubError(RedisError): pass
[docs]class WatchError(RedisError): pass
[docs]class NoScriptError(ResponseError): pass
[docs]class ExecAbortError(ResponseError): pass
[docs]class ReadOnlyError(ResponseError): pass
[docs]class NoPermissionError(ResponseError): pass
[docs]class ModuleError(ResponseError): pass
[docs]class LockError(RedisError, ValueError): "Errors acquiring or releasing a lock" # NOTE: For backwards compatibility, this class derives from ValueError. # This was originally chosen to behave like threading.Lock. pass
[docs]class LockNotOwnedError(LockError): "Error trying to extend or release a lock that is (no longer) owned" pass
[docs]class ChildDeadlockedError(Exception): "Error indicating that a child process is deadlocked after a fork()" pass
[docs]class AuthenticationWrongNumberOfArgsError(ResponseError): """ An error to indicate that the wrong number of args were sent to the AUTH command """ pass