Source code for aiogibson.errors

__all__ = [
    'GibsonError',
    'ProtocolError',
    'ReplyError',
    'ExpectedANumber',
    'MemoryLimitError',
    'KeyLockedError',
    ]


[docs]class GibsonError(Exception): """Base exception class for aiogibson exceptions. """
[docs]class ProtocolError(GibsonError): """Raised when protocol error occurs. """
[docs]class ReplyError(GibsonError): """Generic error while executing the query"""
class GibsonServerError(GibsonError): """Unknown error on gibson server"""
[docs]class ExpectedANumber(GibsonError): """Expected a number ( TTL or TIME ) but the specified value was invalid."""
[docs]class MemoryLimitError(GibsonError): """The server reached configuration memory limit and will not accept any new value until its freeing routine will be executed."""
[docs]class KeyLockedError(GibsonError): """The specified key was locked by a `OP_LOCK` or a `OP_MLOCK` query."""