Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib/python3.5/site-packages/aioredis/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/aioredis/__pycache__/errors.cpython-35.opt-1.pyc



�(Z�	�@s�dddddddddd	d
ddd
dgZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�Z	Gdd�de�Z
Gdd�de�ZGdd�de�ZGdd
�d
e�Z
Gdd�de�ZGdd�de�ZGdd	�d	e�ZGd d
�d
e�ZGd!d�de�Zd"S)#�
RedisError�
ProtocolError�
ReplyError�MaxClientsError�	AuthError�
PipelineError�MultiExecError�WatchVariableError�ChannelClosedError�ConnectionClosedError�ConnectionForcedCloseError�PoolClosedError�MasterNotFoundError�SlaveNotFoundError�
ReadOnlyErrorc@seZdZdZdS)rz-Base exception class for aioredis exceptions.N)�__name__�
__module__�__qualname__�__doc__�rr�@/opt/alt/python35/lib/python3.5/site-packages/aioredis/errors.pyrsc@seZdZdZdS)rz"Raised when protocol error occurs.N)rrrrrrrrrscs.eZdZdZdZ�fdd�Z�S)rz&Raised for redis error replies (-ERR).Ncs[xB|j�D]4}|r
|jr
|j|j�r
|||�Sq
Wt�j|||�S)N)�__subclasses__�MATCH_REPLY�
startswith�super�__new__)�cls�msg�args�klass)�	__class__rrr!s!zReplyError.__new__)rrrrrrrr)rrrsc@seZdZdZdZdS)rzORaised for redis server when the maximum number of client has been
    reached.z!ERR max number of clients reachedN)rrrrrrrrrr(sc@seZdZdZdZdS)rz)Raised when authentication errors occurs.�NOAUTH �ERR invalid passwordN)r r!)rrrrrrrrrr/scs(eZdZdZ�fdd�Z�S)rz/Raised if command within pipeline raised error.cs&t�jdj|jj�|�dS)Nz
{} errors:)r�__init__�formatrr)�self�errors)rrrr"8szPipelineError.__init__)rrrrr"rr)rrr5sc@seZdZdZdS)rz7Raised if command within MULTI/EXEC block caused error.N)rrrrrrrrr<sc@seZdZdZdS)rz7Raised if watched variable changed (EXEC returns None).N)rrrrrrrrr@sc@seZdZdZdS)r	zMRaised when Pub/Sub channel is unsubscribed and messages queue is empty.
    N)rrrrrrrrr	Dsc@seZdZdZdS)rz0Raised from slave when read-only mode is enabledN)rrrrrrrrrIsc@seZdZdZdS)r
z+Raised for sentinel master not found error.N)rrrrrrrrr
Msc@seZdZdZdS)rz*Raised for sentinel slave not found error.N)rrrrrrrrrQsc@seZdZdZdS)�MasterReplyErrorz3Raised by sentinel client for master error replies.N)rrrrrrrrr&Usr&c@seZdZdZdS)�SlaveReplyErrorz2Raised by sentinel client for slave error replies.N)rrrrrrrrr'Ysr'c@seZdZdZdS)r
z*Raised if connection to server was closed.N)rrrrrrrrr
]sc@seZdZdZdS)rz5Raised if connection was closed with .close() method.N)rrrrrrrrrasc@seZdZdZdS)rzRaised if pool is closed.N)rrrrrrrrresN)�__all__�	Exceptionrrrrrrrrr	rr
rr&r'r
rrrrrr�<module>s>