/usr/lib/rads/venv/lib/python3.13/site-packages/dns/__pycache__
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/dns/__pycache__/exception.cpython-313.pyc (7474B)
jA S r SSKJrJr " S S\5 r " S S\5 r " S S\5 r " S S
\5 r " S S\5 r " S
S\5 r
" S S\5 r " S S\5 r " S S\5 r
" S S\5 r " S S5 rg)zCommon DNS Exceptions.
Dnspython modules may also define their own exceptions, which will
always be subclasses of ``DNSException``.
)OptionalSetc ^ \ rS rSr% SrSr\\ \S' \ " 5 r
\\ \S' Sr\\ \S' U 4S jr
S rS rS
rU 4S jrSrU =r$ )
DNSException a 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.
Nmsgsupp_kwargsfmtc > > U R " U0 UD6 U( a( U R " S0 UD6U l [ U 5 U l O[ 5 U l U R c U R U l U( a [ TU ] " U6 g [ TU ]! U R 5 g N )
_check_params
_check_kwargskwargsstrr dict__doc__super__init__selfargsr __class__s @/usr/lib/rads/venv/lib/python3.13/site-packages/dns/exception.pyr DNSException.__init__7 sx D+F+,,6v6DK4yDH&DK88||DHGd#GTXX&