
    ph1                        S r  " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\	5      r " S S\	5      r " S S\	5      r " S S\	5      r " S S \	5      r " S! S"\	5      r " S# S$\\5      r " S% S&\5      r " S' S(\5      r " S) S*\	5      r " S+ S,\5      r " S- S.\5      r " S/ S0\\	5      r " S1 S2\	5      r " S3 S4\	5      r " S5 S6\	5      r " S7 S8\5      r " S9 S:\5      r " S; S<\5      r  " S= S>\5      r! " S? S@\5      r" " SA SB\5      r# " SC SD\5      r$gE)Fz*Core exceptions raised by the Redis clientc                       \ rS rSrSrg)
RedisError    N__name__
__module____qualname____firstlineno____static_attributes__r       J/home/james-whalen/.local/lib/python3.13/site-packages/redis/exceptions.pyr   r          r   r   c                       \ rS rSrSrg)ConnectionError   r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)TimeoutError   r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)AuthenticationError   r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)AuthorizationError   r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)BusyLoadingError   r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)InvalidResponse   r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)ResponseError    r   Nr   r   r   r   r"   r"       r   r   r"   c                       \ rS rSrSrg)	DataError$   r   Nr   r   r   r   r%   r%   $   r   r   r%   c                       \ rS rSrSrg)PubSubError(   r   Nr   r   r   r   r(   r(   (   r   r   r(   c                       \ rS rSrSrg)
WatchError,   r   Nr   r   r   r   r+   r+   ,   r   r   r+   c                       \ rS rSrSrg)NoScriptError0   r   Nr   r   r   r   r.   r.   0   r   r   r.   c                       \ rS rSrSrSrg)OutOfMemoryError4   aA  
Indicates the database is full. Can only occur when either:
  * Redis maxmemory-policy=noeviction
  * Redis maxmemory-policy=volatile* and there are no evictable keys

For more information see `Memory optimization in Redis <https://redis.io/docs/management/optimization/memory-optimization/#memory-allocation>`_. # noqa
r   Nr   r   r	   r
   __doc__r   r   r   r   r1   r1   4        	r   r1   c                       \ rS rSrSrg)ExecAbortError@   r   Nr   r   r   r   r7   r7   @   r   r   r7   c                       \ rS rSrSrg)ReadOnlyErrorD   r   Nr   r   r   r   r:   r:   D   r   r   r:   c                       \ rS rSrSrg)NoPermissionErrorH   r   Nr   r   r   r   r=   r=   H   r   r   r=   c                       \ rS rSrSrg)ModuleErrorL   r   Nr   r   r   r   r@   r@   L   r   r   r@   c                   "    \ rS rSrSrSS jrSrg)	LockErrorP   z$Errors acquiring or releasing a lockNc                     Xl         X l        g N)message	lock_name)selfrG   rH   s      r   __init__LockError.__init__V   s    "r   )rH   rG   )NNr   r   r	   r
   r4   rJ   r   r   r   r   rC   rC   P   s
    *
#r   rC   c                       \ rS rSrSrSrg)LockNotOwnedError[   zDError trying to extend or release a lock that is not owned (anymore)r   Nr3   r   r   r   rN   rN   [   s    Jr   rN   c                       \ rS rSrSrSrg)ChildDeadlockedErrora   zBError indicating that a child process is deadlocked after a fork()r   Nr3   r   r   r   rQ   rQ   a   s    Hr   rQ   c                       \ rS rSrSrSrg)$AuthenticationWrongNumberOfArgsErrorg   zR
An error to indicate that the wrong number of args
were sent to the AUTH command
r   Nr3   r   r   r   rT   rT   g       
 	r   rT   c                       \ rS rSrSrSrg)RedisClusterExceptionp   z,
Base exception for the RedisCluster client
r   Nr3   r   r   r   rX   rX   p        	r   rX   c                       \ rS rSrSrSrg)ClusterErrorx   za
Cluster errors occurred multiple times, resulting in an exhaustion of the
command execution TTL
r   Nr3   r   r   r   r\   r\   x   rV   r   r\   c                       \ rS rSrSrS rSrg)ClusterDownError   a  
Error indicated CLUSTERDOWN error received from cluster.
By default Redis Cluster nodes stop accepting queries if they detect there
is at least a hash slot uncovered (no available node is serving it).
This way if the cluster is partially down (for example a range of hash
slots are no longer covered) the entire cluster eventually becomes
unavailable. It automatically returns available as soon as all the slots
are covered again.
c                      U4U l         Xl        g rF   argsrG   )rI   resps     r   rJ   ClusterDownError.__init__   s    G	r   rb   NrL   r   r   r   r_   r_      s    r   r_   c                       \ rS rSrSrS rSrg)AskError   a  
Error indicated ASK error received from cluster.
When a slot is set as MIGRATING, the node will accept all queries that
pertain to this hash slot, but only if the key in question exists,
otherwise the query is forwarded using a -ASK redirection to the node that
is target of the migration.

src node: MIGRATING to dst node
    get > ASK error
    ask dst node > ASKING command
dst node: IMPORTING from src node
    asking command only affects next command
    any op will be allowed after asking command
c                     U4U l         Xl        UR                  S5      u  p#UR                  SS5      u  pE[	        U5      U l        U[	        U5      4=U l        u  U l        U l        g)z#should only redirect to master node :   N)	rc   rG   splitrsplitintslot_id	node_addrhostport)rI   rd   rp   new_noderr   rs   s         r   rJ   AskError.__init__   sZ    G	 JJsO__S!,
7|04c$i?-DIr   )rc   rr   rG   rq   rs   rp   NrL   r   r   r   rg   rg      s    @r   rg   c                       \ rS rSrSrS rSrg)TryAgainError   z
Error indicated TRYAGAIN error received from cluster.
Operations on keys that don't exist or are - during resharding - split
between the source and destination nodes, will generate a -TRYAGAIN error.
c                     g rF   r   )rI   rc   kwargss      r   rJ   TryAgainError.__init__   s    r   r   NrL   r   r   r   rw   rw      s    r   rw   c                       \ rS rSrSrSrSrg)ClusterCrossSlotError   z
Error indicated CROSSSLOT error received from cluster.
A CROSSSLOT error is generated when keys in a request don't hash to the
same slot.
z+Keys in request don't hash to the same slotr   N)r   r   r	   r
   r4   rG   r   r   r   r   r}   r}      s     <Gr   r}   c                       \ rS rSrSrSrg)
MovedError   z
Error indicated MOVED error received from cluster.
A request sent to a node that doesn't serve this key will be replayed with
a MOVED error that points to the correct node.
r   Nr3   r   r   r   r   r      s     	r   r   c                       \ rS rSrSrSrg)MasterDownError   z
Error indicated MASTERDOWN error received from cluster.
Link with MASTER is down and replica-serve-stale-data is set to 'no'.
r   Nr3   r   r   r   r   r      rV   r   r   c                       \ rS rSrSrSrg)SlotNotCoveredError   z
This error only happens in the case where the connection pool will try to
fetch what node that is covered by a given slot.

If this error is raised the client should drop the current node layout and
attempt to reconnect and refresh the node layout again
r   Nr3   r   r   r   r   r      r5   r   r   c                       \ rS rSrSrSrg)MaxConnectionsError   z
Raised when a connection pool has reached its max_connections limit.
This indicates pool exhaustion rather than an actual connection failure.
r   Nr3   r   r   r   r   r      rV   r   r   c                       \ rS rSrSrSrg)CrossSlotTransactionError   zy
Raised when a transaction or watch is triggered in a pipeline
and not all keys or all commands belong to the same slot.
r   Nr3   r   r   r   r   r      rV   r   r   c                       \ rS rSrSrSrg)InvalidPipelineStack   zg
Raised on unexpected response length on pipelines. This is
most likely a handling error on the stack.
r   Nr3   r   r   r   r   r      rV   r   r   c                       \ rS rSrSrSrg)ExternalAuthProviderError   zC
Raised when an external authentication provider returns an error.
r   Nr3   r   r   r   r   r      rZ   r   r   N)%r4   	Exceptionr   r   r   r   r   r   r   r"   r%   r(   r+   r.   r1   r7   r:   r=   r@   
ValueErrorrC   rN   rQ   rT   rX   r\   r_   rg   rw   r}   r   r   r   r   r   r   r   r   r   r   <module>r      s   ,	 		j 		: 		/ 		 		 		j 		J 		
 		* 		 		M 			} 			] 		M 		 		- 	#
J #		 		9 		= 		I 		: 	|]  @} @4M <M <	 		& 			/ 			/ 		 5 		0 		 	r   