o
    CŒh­  ã                   @   sT   d Z dZdZd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 )zArtur Barseghyanz2013-2025 Artur Barseghyanz,MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later)Ú	TldBadUrlÚTldDomainNotFoundÚTldImproperlyConfiguredÚ
TldIOErrorc                   @   ó   e Zd ZdZdS )r   zUTldIOError.

    Supposed to be thrown when problems with reading/writing occur.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   úO/home/air/segue/gemini/back/venv/lib/python3.10/site-packages/tld/exceptions.pyr      ó    r   c                       ó    e Zd ZdZ‡ fdd„Z‡  ZS )r   zyTldDomainNotFound.

    Supposed to be thrown when domain name is not found (didn't match) the
    local TLD policy.
    c                    ó   t t| ƒ d| ¡ d S )Nz-Domain %s didn't match any existing TLD name!)Úsuperr   Ú__init__)ÚselfÚdomain_name©Ú	__class__r   r   r      s   
ÿzTldDomainNotFound.__init__©r   r   r	   r
   r   Ú__classcell__r   r   r   r   r      s    r   c                       r   )r   zATldBadUrl.

    Supposed to be thrown when bad URL is given.
    c                    r   )NzIs not a valid URL %s!)r   r   r   )r   Úurlr   r   r   r   &   s   zTldBadUrl.__init__r   r   r   r   r   r       s    r   c                   @   r   )r   zßTldImproperlyConfigured.

    Supposed to be thrown when code is improperly configured. Typical use-case
    is when user tries to use `get_tld` function with both `search_public` and
    `search_private` set to False.
    Nr   r   r   r   r   r   *   r   r   N)Ú
__author__Ú__copyright__Ú__license__Ú__all__ÚIOErrorr   Ú
ValueErrorr   r   Ú	Exceptionr   r   r   r   r   Ú<module>   s    
