Merge master
This commit is contained in:
82
infrastructure/lambda/task_queue_manager/redis/exceptions.py
Normal file
82
infrastructure/lambda/task_queue_manager/redis/exceptions.py
Normal file
@ -0,0 +1,82 @@
|
||||
"Core exceptions raised by the Redis client"
|
||||
|
||||
|
||||
class RedisError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ConnectionError(RedisError):
|
||||
pass
|
||||
|
||||
|
||||
class TimeoutError(RedisError):
|
||||
pass
|
||||
|
||||
|
||||
class AuthenticationError(ConnectionError):
|
||||
pass
|
||||
|
||||
|
||||
class BusyLoadingError(ConnectionError):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidResponse(RedisError):
|
||||
pass
|
||||
|
||||
|
||||
class ResponseError(RedisError):
|
||||
pass
|
||||
|
||||
|
||||
class DataError(RedisError):
|
||||
pass
|
||||
|
||||
|
||||
class PubSubError(RedisError):
|
||||
pass
|
||||
|
||||
|
||||
class WatchError(RedisError):
|
||||
pass
|
||||
|
||||
|
||||
class NoScriptError(ResponseError):
|
||||
pass
|
||||
|
||||
|
||||
class ExecAbortError(ResponseError):
|
||||
pass
|
||||
|
||||
|
||||
class ReadOnlyError(ResponseError):
|
||||
pass
|
||||
|
||||
|
||||
class NoPermissionError(ResponseError):
|
||||
pass
|
||||
|
||||
|
||||
class LockError(RedisError, ValueError):
|
||||
"Errors acquiring or releasing a lock"
|
||||
# NOTE: For backwards compatability, this class derives from ValueError.
|
||||
# This was originally chosen to behave like threading.Lock.
|
||||
pass
|
||||
|
||||
|
||||
class LockNotOwnedError(LockError):
|
||||
"Error trying to extend or release a lock that is (no longer) owned"
|
||||
pass
|
||||
|
||||
|
||||
class ChildDeadlockedError(Exception):
|
||||
"Error indicating that a child process is deadlocked after a fork()"
|
||||
pass
|
||||
|
||||
|
||||
class AuthenticationWrongNumberOfArgsError(ResponseError):
|
||||
"""
|
||||
An error to indicate that the wrong number of args
|
||||
were sent to the AUTH command
|
||||
"""
|
||||
pass
|
Reference in New Issue
Block a user