[docs]classErrors(str,Enum):ConnectionClosed="The connection has been terminated."ConnectionReestablished="The connection was terminated, but managed to reestablish it."LibraryBug="This is probably a library bug. Please report it here: https://github.com/xXenvy/zcached.py"TimeoutLimit="The waiting time limit for a response has been reached."NoAvailableConnections="No working connections available."# Server side errors:BadRequest="ERR bad request"UnExpected="ERR unexpected"MaxClientsReached="ERR max number of clients reached"BulkTooLarge="ERR bulk too large"NotWhitelisted="ERR not whitelisted"KeyNotString="TYPERR key not string"NotBoolean="TYPERR not boolean"NotInteger="TYPERR not integer"SaveFailure="ERR there is no data to save"@staticmethoddefnot_found(key:str)->str:"""Generates an error message for a key that was not found."""returnf"ERR '{key}' not found"@staticmethoddefunknown_command(name:str)->str:"""Generates an error message for an unknown command."""returnf"ERR unknown command '{name}'"def__repr__(self)->str:returnself.value