
    Ii	                     V   S SK r S SKJr   " S S\5      r " S S\5      r " S S\ R                  \5      r " S	 S
\ R                  \5      r " S S\ R                  \5      r " S S\ R                  \5      r	 " S S\5      r
 " S S\
5      r " S S\5      rS\S\S\\   SS4S jrg)    N)Typec                       \ rS rSrSrSrg)CryptoError   z,
Base exception for all nacl related errors
 N__name__
__module____qualname____firstlineno____doc____static_attributes__r       5/venv/lib/python3.13/site-packages/nacl/exceptions.pyr   r          r   r   c                       \ rS rSrSrSrg)BadSignatureError   z<
Raised when the signature was forged or otherwise corrupt.
r   Nr   r   r   r   r   r      r   r   r   c                       \ rS rSrSrg)RuntimeError$   r   Nr	   r
   r   r   r   r   r   r   r   r   $       r   r   c                       \ rS rSrSrg)AssertionError(   r   Nr   r   r   r   r   r   (   r   r   r   c                       \ rS rSrSrg)	TypeError,   r   Nr   r   r   r   r   r   ,   r   r   r   c                       \ rS rSrSrg)
ValueError0   r   Nr   r   r   r   r!   r!   0   r   r   r!   c                       \ rS rSrSrg)InvalidkeyError4   r   Nr   r   r   r   r$   r$   4   r   r   r$   c                       \ rS rSrSrg)CryptPrefixError8   r   Nr   r   r   r   r'   r'   8   r   r   r'   c                       \ rS rSrSrSrg)UnavailableError<   z
is a subclass of :class:`~nacl.exceptions.RuntimeError`, raised when
trying to call functions not available in a minimal build of
libsodium.
r   Nr   r   r   r   r*   r*   <   s     	r   r*   condargskwdsreturnc                     SnUR                  S[        5      nU(       a4  [        UR                  [	        UR                  5       S   5      5      5      eU SL a  gU" U6 e)ad  
Return if a condition is true, otherwise raise a caller-configurable
:py:class:`Exception`
:param bool cond: the condition to be checked
:param sequence args: the arguments to be passed to the exception's
                      constructor
The only accepted named parameter is `raising` used to configure the
exception to be raised if `cond` is not `True`
z8check_condition() got an unexpected keyword argument {0}raisingr   TN)popr   r   formatreprpopitem)r,   r-   r.   
_CHK_UNEXPr1   s        r   ensurer7   F   sW     LJhhy.1G
))$t||~a/@*ABCCt|
4.r   )builtinstypingr   	Exceptionr   r   r   r   r   r!   r$   r'   r*   boolobjectr7   r   r   r   <module>r=      s   (  )  	8((+ 		X,,k 		""K 		$$k 		k 		 		| 	 f d9o $ r   