
    \d                     6   d Z ddlmZ  G d de          Z G d de          Z G d de          Z G d	 d
e          Z G d de          Z G d de          Z	 G d de          Z
 G d de          Z G d de          Z G d de          Zg dZdS )z0
Exception class definitions for Twisted Names.
    )TimeoutErrorc                       e Zd ZdZdS )DomainErrorzu
    Indicates a lookup failed because there were no records matching the given
    C{name, class, type} triple.
    N__name__
__module____qualname____doc__     3lib/python3.11/site-packages/twisted/names/error.pyr   r                 r   r   c                       e Zd ZdZdS )AuthoritativeDomainErrorz
    Indicates a lookup failed for a name for which this server is authoritative
    because there were no records matching the given C{name, class, type}
    triple.
    Nr   r   r   r   r   r      s           r   r   c                       e Zd ZdZd ZdS )DNSQueryTimeoutErrorzk
    Indicates a lookup failed due to a timeout.

    @ivar id: The id of the message which timed out.
    c                 <    t          j        |            || _        d S )N)r   __init__id)selfr   s     r   r   zDNSQueryTimeoutError.__init__#   s    d###r   N)r   r   r	   r
   r   r   r   r   r   r      s-             r   r   c                       e Zd ZdZdS )DNSFormatErrorzQ
    Indicates a query failed with a result of C{twisted.names.dns.EFORMAT}.
    Nr   r   r   r   r   r   (              r   r   c                       e Zd ZdZdS )DNSServerErrorzQ
    Indicates a query failed with a result of C{twisted.names.dns.ESERVER}.
    Nr   r   r   r   r   r   .   r   r   r   c                       e Zd ZdZdS )DNSNameErrorzO
    Indicates a query failed with a result of C{twisted.names.dns.ENAME}.
    Nr   r   r   r   r   r   4   r   r   r   c                       e Zd ZdZdS )DNSNotImplementedErrorzQ
    Indicates a query failed with a result of C{twisted.names.dns.ENOTIMP}.
    Nr   r   r   r   r   r   :   r   r   r   c                       e Zd ZdZdS )DNSQueryRefusedErrorzR
    Indicates a query failed with a result of C{twisted.names.dns.EREFUSED}.
    Nr   r   r   r   r!   r!   @   r   r   r!   c                       e Zd ZdZdS )DNSUnknownErrorz:
    Indicates a query failed with an unknown result.
    Nr   r   r   r   r#   r#   F   r   r   r#   c                       e Zd ZdZdS )ResolverErrorz_
    Indicates a query failed because of a decision made by the local
    resolver object.
    Nr   r   r   r   r%   r%   L   r   r   r%   )
r   r   r   r   r   r   r   r!   r#   r%   N)r
   twisted.internet.deferr   
ValueErrorr   r   r   r   r   r   r   r!   r#   	Exceptionr%   __all__r   r   r   <module>r*      s  
 
 0 / / / / /    *       z   	 	 	 	 	< 	 	 	    [       [       ;       [       ;       k       I     r   