HEX
Server: Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
System: Linux sv2.tribox.net.br 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
User: bucalon (1051)
PHP: 8.2.13
Disabled: system,exec,shell_exec,popen,passthru,proc_open,posix_getpwnam,posix_getpwuid,posix_kill,pcntl_fork,escapeshellarg,escapeshellcmd,proc_close,dl,show_source,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,pcntl_exec,expect_popen,pcntl_signal_get_handler,pcntl_async_signals,link,symlink,syslog,ld,mb_send_mail,imap_open,imap_mail,libvirt_connect,gnupg_init,stream_socket_sendto,stream_socket_client,parse_ini_file,curl_multi_exec
Upload Files
File: //lib/python2.7/site-packages/dns/exception.pyo
�
m!|Uc@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
    formated 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||�|j|�||_|jdkrD|j|_n|rctt|�j|�ntt|�j|j�dS(N(	t
_check_paramst
_check_kwargstkwargstmsgtNonet__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((R	R
R((s1/usr/lib/python2.7/site-packages/dns/exception.pyR9scKs
|r	ndS(N((R	R((s1/usr/lib/python2.7/site-packages/dns/exception.pyRAscKs�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
isinstancetlisttsettmaptstrtlentpop(R	Rtfmtargstkwtdata((s1/usr/lib/python2.7/site-packages/dns/exception.pyt_fmt_kwargsGscCsK|jr4|jr4|j|j�}|jj|�Stt|�j�SdS(N(RtfmtRtformatRRt__str__(R	R((s1/usr/lib/python2.7/site-packages/dns/exception.pyRYsN(
t__name__t
__module__RRRRtsupp_kwargsRRRRRR(((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.pyRcstSyntaxErrorcBseZdZRS(sText input is malformed.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRfst
UnexpectedEndcBseZdZRS(sText input ended unexpectedly.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRistTooBigcBseZdZRS(sThe DNS message is too big.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyR lstTimeoutcBs+eZdZedg�Zded ZRS(sThe DNS operation timed out.ttimeouts%s after {timeout} secondsi����(RRRRRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyR!osN(Rt	ExceptionRRRRR R!(((s1/usr/lib/python2.7/site-packages/dns/exception.pyt<module>sP