ledisdb/client/ledis-py/ledis/exceptions.py

39 lines
493 B
Python
Raw Normal View History

2014-07-01 06:40:56 +04:00
"Core exceptions raised by the LedisDB client"
2014-06-30 06:56:32 +04:00
2014-07-01 06:40:56 +04:00
class LedisError(Exception):
2014-06-30 06:56:32 +04:00
pass
2014-07-01 06:40:56 +04:00
class ServerError(LedisError):
2014-06-30 06:56:32 +04:00
pass
class ConnectionError(ServerError):
pass
class BusyLoadingError(ConnectionError):
pass
2014-08-26 06:56:29 +04:00
class TimeoutError(LedisError):
pass
2014-06-30 06:56:32 +04:00
class InvalidResponse(ServerError):
pass
2014-07-01 06:40:56 +04:00
class ResponseError(LedisError):
2014-06-30 06:56:32 +04:00
pass
2014-07-01 06:40:56 +04:00
class DataError(LedisError):
2014-06-30 06:56:32 +04:00
pass
class ExecAbortError(ResponseError):
pass
2014-08-26 06:56:29 +04:00
2014-09-25 06:44:07 +04:00
class TxNotBeginError(LedisError):
pass