GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //usr/lib/python2.7/site-packages/dns/exception.pyo
�
d��Wc@s�dZdefd��YZdefd��YZdefd��YZdefd��YZd	efd
��YZdefd��YZd
S(sCommon DNS Exceptions.tDNSExceptioncBsPeZdZdZe�ZdZd�Zd�Z	d�Z
d�Zd�ZRS(s�Abstract base class shared by all dnspython exceptions.

    It supports two basic modes of operation:

    a) Old/compatible mode is used if __init__ was called with
    empty **kwargs.
    In compatible mode all *args are passed to standard Python Exception class
    as before and all *args are printed by standard __str__ implementation.
    Class variable msg (or doc string if msg is None) is returned from str()
    if *args is empty.

    b) New/parametrized mode is used if __init__ was called with
    non-empty **kwargs.
    In the new mode *args has to be empty and all kwargs has to exactly match
    set in class variable self.supp_kwargs. All kwargs are stored inside
    self.kwargs and used in new __str__ implementation to construct
    formatted message based on self.fmt string.

    In the simplest case it is enough to override supp_kwargs and fmt
    class variables to get nice parametrized messages.
    cOs�|j||�|r:|j|�|_t|�|_nt�|_|jdkrd|j|_n|r�tt	|�j
|�ntt	|�j
|j�dS(N(t
_check_paramst
_check_kwargstkwargststrtmsgtdicttNonet__doc__tsuperRt__init__(tselftargsR((s1/usr/lib/python2.7/site-packages/dns/exception.pyR
.scOs|s|rndS(ssOld exceptions supported only args and not kwargs.

        For sanity we do not allow to mix old and new behavior.N((RRR((s1/usr/lib/python2.7/site-packages/dns/exception.pyR=scKs
|r	n|S(N((RR((s1/usr/lib/python2.7/site-packages/dns/exception.pyREscKs�i}x�|j�D]t\}}t|ttf�r}ttt|��||<t||�dkr�||j�||<q�q|||<qW|S(s�Format kwargs before printing them.

        Resulting dictionary has to have keys necessary for str.format call
        on fmt class variable.
        i(titemst
isinstancetlisttsettmapRtlentpop(RRtfmtargstkwtdata((s1/usr/lib/python2.7/site-packages/dns/exception.pyt_fmt_kwargsLscCsK|jr4|jr4|j|j�}|jj|�Stt|�j�SdS(N(RtfmtRtformatR	Rt__str__(RR((s1/usr/lib/python2.7/site-packages/dns/exception.pyR^sN(
t__name__t
__module__RRRRtsupp_kwargsRR
RRRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRs					t	FormErrorcBseZdZRS(sDNS message is malformed.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRhstSyntaxErrorcBseZdZRS(sText input is malformed.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRmst
UnexpectedEndcBseZdZRS(sText input ended unexpectedly.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyR rstTooBigcBseZdZRS(sThe DNS message is too big.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyR!wstTimeoutcBs#eZdZedg�ZdZRS(sThe DNS operation timed out.ttimeouts3The DNS operation timed out after {timeout} seconds(RRRRRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyR"|sN(Rt	ExceptionRRRR R!R"(((s1/usr/lib/python2.7/site-packages/dns/exception.pyt<module>sU