File: //lib/python3/dist-packages/keyring/__pycache__/errors.cpython-38.pyc
U
��l^� � @ s� d dl Z eZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d
d� de�ZG dd
� d
ee �Z
G dd� d�ZG dd� d�ZdS )� Nc @ s e Zd ZdZdS )�KeyringErrorz)Base class for exceptions in keyring
N��__name__�
__module__�__qualname__�__doc__� r r �0/usr/lib/python3/dist-packages/keyring/errors.pyr s r c @ s e Zd ZdZdS )�PasswordSetErrorz+Raised when the password can't be set.
Nr r r r r r
s r
c @ s e Zd ZdZdS )�PasswordDeleteErrorz/Raised when the password can't be deleted.
Nr r r r r r s r c @ s e Zd ZdZdS )� InitErrorz5Raised when the keyring could not be initialised
Nr r r r r r s r c @ s e Zd ZdZdS )�
KeyringLockedz-Raised when the keyring failed unlocking
Nr r r r r r
s r
c @ s e Zd ZdZdS )�NoKeyringErrorz,Raised when there is no keyring backend
Nr r r r r r s r c @ s, e Zd ZdZefdd�Zdd� Zdd� ZdS ) �ExceptionRaisedContextz[
An exception-trapping context that indicates whether an exception was
raised.
c C s || _ d | _d S �N)�ExpectedException�exc_info)�selfr r r r �__init__+ s zExceptionRaisedContext.__init__c C s t �t�| _| jS r )�object�__new__�
ExceptionInfor �r r r r � __enter__/ s z ExceptionRaisedContext.__enter__c G s$ | j j|� | j jo"t| j j| j�S r )r r �type�
issubclassr )r r r r r �__exit__3 s
�zExceptionRaisedContext.__exit__N)r r r r � Exceptionr r r r r r r r % s r c @ s e Zd Zdd� Zdd� ZeZdS )r c G s |st �� }|\| _| _}d S r )�sysr r �value)r �info�_r r r r : s zExceptionInfo.__init__c C s
t | j�S )z6
Return True if an exception occurred
)�boolr r r r r �__bool__? s zExceptionInfo.__bool__N)r r r r r# Z__nonzero__r r r r r 9 s r )
r r Z
__metaclass__r r r
r r r
�RuntimeErrorr r r r r r r �<module> s