*j[ v S r " S S\5 r " S S\5 r " S S\5 r " S S\5 r " S S \5 rg)z!Different kinds of SAX Exceptionsc : \ rS rSrSrS S jrS rS rS rS r S r g)SAXException a 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 F Xl X l [ R X5 g)zMCreates an exception. The message is required, but the exception is optional.N)_msg _exception Exception__init__)selfmsg exceptions :/opt/alt/python313/lib64/python3.13/xml/sax/_exceptions.pyr SAXException.__init__ s #4% c U R $ )z$Return a message for this exception.r r s r getMessageSAXException.getMessage yyr c U R $ )z9Return the embedded exception, or None if there was none.)r r s r getExceptionSAXException.getException s r c U R $ )0Create a string representation of the exception.r r s r __str__SAXException.__str__ r r c [ S5 e)znAvoids weird error messages if someone does exception[ix] by mistake, since Exception has __getitem__ defined.__getitem__)AttributeError)r ixs r r SAXException.__getitem__" s ]++r )r r )N)__name__ __module____qualname____firstlineno____doc__r r r r r __static_attributes__ r r r r s &,r r c <