![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /lib/python2.7/site-packages/dns/ |
� m!|Uc @ s� d Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s Common DNS Exceptions.t DNSExceptionc B sP e Z d Z d Z e � Z d Z d � Z d � Z d � Z d � Z d � 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. c O s� | j | | � | j | � | | _ | j d k rD | j | _ n | rc t t | � j | � n t t | � j | j � d S( N( t _check_paramst _check_kwargst kwargst msgt Nonet __doc__t superR t __init__( t selft argsR ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR - s c O s | s | r n d S( ss Old 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.pyR 9 s c K s | r n d S( N( ( R R ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR A s c K s� i } x� | j � D]t \ } } t | t t f � r} t t t | � � | | <t | | � d k r� | | j � | | <q� q | | | <q W| S( s� Format kwargs before printing them. Resulting dictionary has to have keys necessary for str.format call on fmt class variable. i ( t itemst isinstancet listt sett mapt strt lent pop( R R t fmtargst kwt data( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyt _fmt_kwargsG s c C sK | j r4 | j r4 | j | j � } | j j | � St t | � j � Sd S( N( R t fmtR t formatR R t __str__( R R ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR Y s N( t __name__t __module__R R R R t supp_kwargsR R R R R R ( ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR s t FormErrorc B s e Z d Z RS( s DNS message is malformed.( R R R ( ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR c s t SyntaxErrorc B s e Z d Z RS( s Text input is malformed.( R R R ( ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR f s t UnexpectedEndc B s e Z d Z RS( s Text input ended unexpectedly.( R R R ( ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR i s t TooBigc B s e Z d Z RS( s The DNS message is too big.( R R R ( ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR l s t Timeoutc B s+ e Z d Z e d g � Z d e d Z RS( s The DNS operation timed out.t timeouts %s after {timeout} secondsi����( R R R R R R ( ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyR! o s N( R t ExceptionR R R R R R! ( ( ( s1 /usr/lib/python2.7/site-packages/dns/exception.pyt <module> s P