o
    VhY                     @   s   d dl Z d dlZG dd deZG dd deZG dd deZG dd	 d	eZG d
d deZG dd deeZ	G dd dZ
G dd dZdS )    Nc                   @      e Zd ZdZdS )KeyringErrorz$Base class for exceptions in keyringN__name__
__module____qualname____doc__ r	   r	   b/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/keyring/errors.pyr          r   c                   @   r   )PasswordSetErrorz&Raised when the password can't be set.Nr   r	   r	   r	   r
   r   	   r   r   c                   @   r   )PasswordDeleteErrorz*Raised when the password can't be deleted.Nr   r	   r	   r	   r
   r      r   r   c                   @   r   )	InitErrorz0Raised when the keyring could not be initialisedNr   r	   r	   r	   r
   r      r   r   c                   @   r   )KeyringLockedz(Raised when the keyring failed unlockingNr   r	   r	   r	   r
   r      r   r   c                   @   r   )NoKeyringErrorz'Raised when there is no keyring backendNr   r	   r	   r	   r
   r      r   r   c                   @   s,   e Zd ZdZefddZdd Zdd ZdS )	ExceptionRaisedContextz[
    An exception-trapping context that indicates whether an exception was
    raised.
    c                 C   s    t jdtdd || _d | _d S )NzHExceptionRaisedContext is deprecated; use `jaraco.context.ExceptionTrap`   )
stacklevel)warningswarnDeprecationWarningExpectedExceptionexc_info)selfr   r	   r	   r
   __init__#   s   
zExceptionRaisedContext.__init__c                 C   s   t t| _| jS N)object__new__ExceptionInfor   r   r	   r	   r
   	__enter__,   s   z ExceptionRaisedContext.__enter__c                 G   s$   | j j|  | j jot| j j| jS r   )r   r   type
issubclassr   )r   r   r	   r	   r
   __exit__0   s   

zExceptionRaisedContext.__exit__N)r   r   r   r   	Exceptionr   r    r#   r	   r	   r	   r
   r      s
    	r   c                   @   s    e Zd Zdd Zdd ZeZdS )r   c                 G   s   |st  }|\| _| _}d S r   )sysr   r!   value)r   info_r	   r	   r
   r   8   s   zExceptionInfo.__init__c                 C   s
   t | jS )z6
        Return True if an exception occurred
        )boolr!   r   r	   r	   r
   __bool__=   s   
zExceptionInfo.__bool__N)r   r   r   r   r*   __nonzero__r	   r	   r	   r
   r   7   s    r   )r%   r   r$   r   r   r   r   r   RuntimeErrorr   r   r   r	   r	   r	   r
   <module>   s    