o
    Öž\ð  ã                   @   s²   d Z ddlmZmZmZ ddlZG dd„ deƒZejG dd„ de	ƒƒZ
ejG dd	„ d	eƒƒZejG d
d„ deƒƒZejG dd„ deƒƒZejG dd„ deƒƒZG dd„ de	ƒZdS )z¡
All exceptions and warnings thrown by ``service_identity``.

Separated into an own package for nicer tracebacks, you should still import
them from __init__.py.
é    )Úabsolute_importÚdivisionÚprint_functionNc                   @   ó   e Zd ZdZdS )ÚSubjectAltNameWarningz’
    Server Certificate does not contain a ``SubjectAltName``.

    Hostname matching is performed on the ``CommonName`` which is deprecated.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú=/usr/lib/python3/dist-packages/service_identity/exceptions.pyr      ó    r   c                   @   s    e Zd ZdZe ¡ Zdd„ ZdS )ÚVerificationErrorz/
    Service identity verification failed.
    c                 C   s   |   ¡ S )N)Ú__repr__)Úselfr   r   r   Ú__str__   s   zVerificationError.__str__N)r   r	   r
   r   ÚattrÚibÚerrorsr   r   r   r   r   r      s    r   c                   @   ó   e Zd ZdZe ¡ ZdS )ÚDNSMismatchz0
    No matching DNSPattern could be found.
    N©r   r	   r
   r   r   r   Úmismatched_idr   r   r   r   r   !   ó    r   c                   @   r   )ÚSRVMismatchz0
    No matching SRVPattern could be found.
    Nr   r   r   r   r   r   *   r   r   c                   @   r   )ÚURIMismatchz0
    No matching URIPattern could be found.
    Nr   r   r   r   r   r   3   r   r   c                   @   r   )ÚIPAddressMismatchz6
    No matching IPAddressPattern could be found.
    Nr   r   r   r   r   r   <   r   r   c                   @   r   )ÚCertificateErrorz:
    Certificate contains invalid or unexpected data.
    Nr   r   r   r   r   r   E   r   r   )r   Ú
__future__r   r   r   r   ÚDeprecationWarningr   ÚsÚ	Exceptionr   Úobjectr   r   r   r   r   r   r   r   r   Ú<module>   s    