/usr/lib/python3.10/xml/sax/__pycache__
Edit: /usr/lib/python3.10/xml/sax/__pycache__/_exceptions.cpython-310.pyc (5374B)
o
…9j± ã @ s€ d Z ddlZejdd… dkrddlmZ [G dd„ deƒZG dd „ d eƒZG d
d„ deƒZG dd
„ d
eƒZG dd„ deƒZ dS )z!Different kinds of SAX Exceptionsé Né Újava)Ú Exceptionc @ s: e Zd ZdZd
dd„Zdd„ Zdd„ Zd d
„ Zdd„ ZdS )ÚSAXExceptionaÖ Encapsulate an XML error or warning. This class can contain
basic error or warning information from either the XML parser or
the application: you can subclass it to provide additional
functionality, or to add localization. Note that although you will
receive a SAXException as the argument to the handlers in the
ErrorHandler interface, you are not actually required to raise
the exception; instead, you can simply read the information in
it.Nc C s || _ || _t | |¡ dS )zUCreates an exception. The message is required, but the exception
is optional.N)Ú_msgÚ
_exceptionr Ú__init__)ÚselfÚmsgÚ exception© r ú*/usr/lib/python3.10/xml/sax/_exceptions.pyr s zSAXException.__init__c C ó | j S )z$Return a message for this exception.©r ©r r r r
Ú
getMessage ó zSAXException.getMessagec C r )z9Return the embedded exception, or None if there was none.)r r r r r
ÚgetException r zSAXException.getExceptionc C r )ú0Create a string representation of the exception.r r r r r
Ú__str__" r zSAXException.__str__c C s t dƒ‚)zvAvoids weird error messages if someone does exception[ix] by
mistake, since Exception has __getitem__ defined.Ú__getitem__)ÚAttributeError)r Úixr r r
r &