Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/dns/__pycache__/exception.cpython-312.pyc

47 lines
7.0 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i0<00><00><00>dZddlmZGd<03>de<03>ZGd<05>de<04>ZGd<07>de<04>ZGd <09>d
e<06>ZGd <0B>d e<04>ZGd <0A>de<04>Z Gd<0F>de<04>Z
Gd<11>de
<EFBFBD>Z Gd<13>de<04>Z Gd<15>de<04>Z Gd<17>d<18>Zy)z<>Common DNS Exceptions.
Dnspython modules may also define their own exceptions, which will
always be subclasses of ``DNSException``.
<EFBFBD>)<01>Setc<00><><00><00>eZdZUdZdZedzed<e<07>Ze eed<dZ
edzed<<00>fd<06>Z d<07>Z d<08>Z d <09>Z<0E>fd
<EFBFBD>Z<0F>xZS) <0B> DNSExceptiona<6E>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 the standard Python Exception class as before and all *args* are
printed by the 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* must be empty and all kwargs must match
those set in class variable ``supp_kwargs``. All kwargs are stored inside
``self.kwargs`` and used in a new ``__str__`` implementation to construct
a formatted message based on the ``fmt`` class variable, a ``string``.
In the simplest case it is enough to override the ``supp_kwargs``
and ``fmt`` class variables to get nice parametrized messages.
N<>msg<73> supp_kwargs<67>fmtc<00>&<00><01>|j|i|<02><01>|r(|jdi|<02><01>|_t|<00>|_nt <00>|_|j<00>|j |_|r t<00>|<00> |<01>yt<00>|<00>!|j<00>y<00>N<>) <09> _check_params<6D> _check_kwargs<67>kwargs<67>strr<00>dict<63>__doc__<5F>super<65>__init__<5F><04>self<6C>argsr<00> __class__s <20><><E:\Project\pygoedge\.venv\Lib\site-packages\dns/exception.pyrzDNSException.__init__7s|<00><><00><1A><04><1A><1A>D<EFBFBD>+<2B>F<EFBFBD>+<2B> <11>,<2C>$<24>,<2C>,<2C>6<>v<EFBFBD>6<>D<EFBFBD>K<EFBFBD><1A>4<EFBFBD>y<EFBFBD>D<EFBFBD>H<EFBFBD><1E>&<26>D<EFBFBD>K<EFBFBD> <0F>8<EFBFBD>8<EFBFBD> <1B><1B>|<7C>|<7C>D<EFBFBD>H<EFBFBD> <0F> <11>G<EFBFBD> <1C>d<EFBFBD> #<23> <11>G<EFBFBD> <1C>T<EFBFBD>X<EFBFBD>X<EFBFBD> &<26>c<00>J<00>|s|rt|<01>t|<02>k7sJd<01><00>yy)zsOld exceptions supported only args and not kwargs.
For sanity we do not allow to mix old and new behavior.z=keyword arguments are mutually exclusive with positional argsN)<01>bool)rrrs rr zDNSException._check_paramsGs8<00><00> <10>6<EFBFBD><17><04>:<3A><14><16>"<0E><0E> O<01>N<> O<01><0E>rc <00>~<00>|r:t|j<00><00>|jk(sJd|j<00><00><02><00>|S)Nz+following set of keyword args is required: )<03>set<65>keysr)rrs rr zDNSException._check_kwargsPsC<00><00> <11><13>F<EFBFBD>K<EFBFBD>K<EFBFBD>M<EFBFBD>"<22>d<EFBFBD>&6<>&6<>6<> P<01><<3C>T<EFBFBD>=M<>=M<><N<>O<> P<01>6<><15> rc <00><><00>i}|j<00>D]f\}}t|ttz<00>rEtt t
|<04><00>||<t ||<00>dk(s<01>K||j<00>||<<00>b|||<<00>h|S)z<>Format kwargs before printing them.
Resulting dictionary has to have keys necessary for str.format call
on fmt class variable.
<20>)<08>items<6D>
isinstance<EFBFBD>listr<00>mapr<00>len<65>pop)rr<00>fmtargs<67>kw<6B>datas r<00> _fmt_kwargszDNSException._fmt_kwargsWst<00><00> <15><07><1E> <0C> <0C><0E>H<EFBFBD>B<EFBFBD><04><19>$<24><04>s<EFBFBD>
<EFBFBD>+<2B>"<22>3<EFBFBD>s<EFBFBD>D<EFBFBD>><3E>2<><07><02> <0B><16>w<EFBFBD>r<EFBFBD>{<7B>#<23>q<EFBFBD>(<28>")<29>"<22>+<2B>/<2F>/<2F>"3<>G<EFBFBD>B<EFBFBD>K<EFBFBD>"<22><07><02> <0B>'<27><17>rc<00><><00><01>|jrD|jr8|jdi|j<00><01>}|jjdi|<01><01>St<00>|<00><00>Sr
)rrr*<00>formatr<00>__str__)rr'rs <20>rr-zDNSException.__str__isP<00><><00> <0F>;<3B>;<3B>4<EFBFBD>8<EFBFBD>8<EFBFBD>&<26>d<EFBFBD>&<26>&<26>5<><14><1B><1B>5<>G<EFBFBD>"<22>4<EFBFBD>8<EFBFBD>8<EFBFBD>?<3F>?<3F>-<2D>W<EFBFBD>-<2D> -<2D><19>7<EFBFBD>?<3F>$<24> $r)<11>__name__<5F>
__module__<EFBFBD> __qualname__rrr<00>__annotations__rrrrrr r r*r-<00> __classcell__<5F>rs@rrrsU<00><><00><08>,<1B>C<EFBFBD><13>t<EFBFBD><1A><1A><1F>E<EFBFBD>K<EFBFBD><13>S<EFBFBD><18>!<21><1A>C<EFBFBD><13>t<EFBFBD><1A><1A>'<27> O<01><16><17>$%<25>%rrc<00><00>eZdZdZy)<03> FormErrorzDNS message is malformed.N<>r.r/r0rr rrr5r5ss<00><00>#rr5c<00><00>eZdZdZy)<03> SyntaxErrorzText input is malformed.Nr6r rrr8r8w<00><00><00>"rr8c<00><00>eZdZdZy)<03> UnexpectedEndzText input ended unexpectedly.Nr6r rrr;r;{s<00><00>(rr;c<00><00>eZdZdZy)<03>TooBigzThe DNS message is too big.Nr6r rrr=r=s<00><00>%rr=c<00>,<00><00>eZdZdZdhZdZ<05>fd<04>Z<06>xZS)<05>TimeoutzThe DNS operation timed out.<2E>timeoutz7The DNS operation timed out after {timeout:.3f} secondsc<00>$<00><01>t<00>|<00>|i|<02><01>y<00>N)rrrs <20>rrzTimeout.__init__<5F>s<00><><00> <0A><07><18>$<24>)<29>&<26>)r)r.r/r0rrrrr2r3s@rr?r?<00>s<00><><00>&<26><1C>+<2B>K<EFBFBD>
C<EFBFBD>C<EFBFBD>*<2A>*rr?c<00><00>eZdZdZy)<03>UnsupportedAlgorithmz&The DNSSEC algorithm is not supported.Nr6r rrrDrD<00>s<00><00>0rrDc<00><00>eZdZdZy)<03>AlgorithmKeyMismatchz=The DNSSEC algorithm is not supported for the given key type.Nr6r rrrFrF<00>s<00><00>GrrFc<00><00>eZdZdZy)<03>ValidationFailurez The DNSSEC signature is invalid.Nr6r rrrHrH<00>s<00><00>*rrHc<00><00>eZdZdZy)<03>DeniedByPolicyzDenied by DNSSEC policy.Nr6r rrrJrJ<00>r9rrJc<00><00>eZdZd<01>Zd<02>Zd<03>Zy)<05>ExceptionWrapperc<00><00>||_yrB)<01>exception_class)rrNs rrzExceptionWrapper.__init__<5F>s
<00><00>.<2E><04>rc<00><00>|SrBr )rs r<00> __enter__zExceptionWrapper.__enter__<5F>s<00><00><13> rc<00>j<00>|<01>1t||j<00>s|jt|<02><00>|<02>y)NF)r"rNr)r<00>exc_type<70>exc_val<61>exc_tbs r<00>__exit__zExceptionWrapper.__exit__<5F>s1<00><00> <13> <1F>
<EFBFBD>7<EFBFBD>D<EFBFBD><P<><P<>(Q<><16>&<26>&<26>s<EFBFBD>7<EFBFBD>|<7C>4<>'<27> A<>rN)r.r/r0rrPrUr rrrLrL<00>s<00><00>/<2F><14>rrLN)r<00>typingr<00> Exceptionrr5r8r;r=r?rDrFrHrJrLr rr<00><module>rXs<><00><01>$<04><17>T%<25>9<EFBFBD>T%<25>n$<24> <0C>$<24>#<23>,<2C>#<23>)<29>K<EFBFBD>)<29>&<26>\<5C>&<26> *<2A>l<EFBFBD> *<2A>1<><<3C>1<>H<01>/<2F>H<01>+<2B> <0C>+<2B>#<23>\<5C>#<23>
<15>
r