
    #a                     l   d Z ddlmZmZmZ ddlZ G d de          Zej         G d de	                      Z
ej         G d d	e                      Zej         G d
 de                      Zej         G d de                      Zej         G d de                      Z G 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__     ;lib/python3.11/site-packages/service_identity/exceptions.pyr   r      s           r   r   c                   6    e Zd ZdZ ej                    Zd ZdS )VerificationErrorz/
    Service identity verification failed.
    c                 *    |                                  S )N)__repr__)selfs    r   __str__zVerificationError.__str__   s    }}r   N)r	   r
   r   r   attriberrorsr   r   r   r   r   r      s<          TWYYF    r   r   c                   0    e Zd ZdZ ej                    ZdS )DNSMismatchz0
    No matching DNSPattern could be found.
    Nr	   r
   r   r   r   r   mismatched_idr   r   r   r   r   !   '          DGIIMMMr   r   c                   0    e Zd ZdZ ej                    ZdS )SRVMismatchz0
    No matching SRVPattern could be found.
    Nr   r   r   r   r   r   *   r   r   r   c                   0    e Zd ZdZ ej                    ZdS )URIMismatchz0
    No matching URIPattern could be found.
    Nr   r   r   r   r!   r!   3   r   r   r!   c                   0    e Zd ZdZ ej                    ZdS )IPAddressMismatchz6
    No matching IPAddressPattern could be found.
    Nr   r   r   r   r#   r#   <   r   r   r#   c                       e Zd ZdZdS )CertificateErrorz:
    Certificate contains invalid or unexpected data.
    Nr   r   r   r   r%   r%   E   s           r   r%   )r   
__future__r   r   r   r   DeprecationWarningr   s	Exceptionr   objectr   r   r!   r#   r%   r   r   r   <module>r+      s    A @ @ @ @ @ @ @ @ @     .        	        &        &        &               y     r   