o
    BŠ]¤  ã                   @   sš   d dl mZ d dlmZ d dlmZ G dd„ de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ƒZG dd„ deƒZdS )é    )ÚPyAsn1Error)ÚPySnmpError)Údebugc                   @   ó   e Zd ZdS )ÚProtocolErrorN©Ú__name__Ú
__module__Ú__qualname__© r   r   ú4/usr/lib/python3/dist-packages/pysnmp/proto/error.pyr      ó    r   c                   @   r   )ÚSnmpV3ErrorNr   r   r   r   r   r      r   r   c                   @   s6   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zdd
d„Zd	S )ÚStatusInformationc                 K   sF   t  | ¡ || _tjtjtjB tjB tjB @ o t d| ¡ d S  d S )NzStatusInformation: %s)	r   Ú__init__Ú#_StatusInformation__errorIndicationr   ÚloggerZflagDspZflagMPZflagSMZflagACL)ÚselfÚkwargsr   r   r   r      s
   
"ÿzStatusInformation.__init__c                 C   s
   t | jƒS ©N)Ústrr   )r   r   r   r   Ú__str__   ó   
zStatusInformation.__str__c                 C   s
   | j | S r   ©r   ©r   Úkeyr   r   r   Ú__getitem__    r   zStatusInformation.__getitem__c                 C   s
   || j v S r   r   r   r   r   r   Ú__contains__#   r   zStatusInformation.__contains__Nc                 C   s   | j  ||¡S r   )r   Úget)r   r   ZdefValr   r   r   r   &   s   zStatusInformation.getr   )r   r	   r
   r   r   r   r   r   r   r   r   r   r      s    r   c                   @   r   )ÚCacheExpiredErrorNr   r   r   r   r   r   *   r   r   c                   @   r   )ÚInternalErrorNr   r   r   r   r   r    .   r   r    c                   @   r   )ÚMessageProcessingErrorNr   r   r   r   r   r!   2   r   r!   c                   @   r   )ÚRequestTimeoutNr   r   r   r   r   r"   6   r   r"   N)Zpyasn1.errorr   Zpysnmp.errorr   Zpysnmpr   r   r   r   r   r    r!   r"   r   r   r   r   Ú<module>   s   