exceptions.py 867 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. "Core exceptions raised by the Redis client"
  2. class RedisError(Exception):
  3. pass
  4. class AuthenticationError(RedisError):
  5. pass
  6. class ConnectionError(RedisError):
  7. pass
  8. class TimeoutError(RedisError):
  9. pass
  10. class BusyLoadingError(ConnectionError):
  11. pass
  12. class InvalidResponse(RedisError):
  13. pass
  14. class ResponseError(RedisError):
  15. pass
  16. class DataError(RedisError):
  17. pass
  18. class PubSubError(RedisError):
  19. pass
  20. class WatchError(RedisError):
  21. pass
  22. class NoScriptError(ResponseError):
  23. pass
  24. class ExecAbortError(ResponseError):
  25. pass
  26. class ReadOnlyError(ResponseError):
  27. pass
  28. class LockError(RedisError, ValueError):
  29. "Errors acquiring or releasing a lock"
  30. # NOTE: For backwards compatability, this class derives from ValueError.
  31. # This was originally chosen to behave like threading.Lock.
  32. pass