Your IP : 3.137.174.186


Current Path : /opt/alt/python313/lib64/python3.13/xml/sax/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/xml/sax/__pycache__/_exceptions.cpython-313.opt-1.pyc

�

2}g[��v�Sr"SS\5r"SS\5r"SS\5r"SS\5r"S	S
\5rg)z!Different kinds of SAX Exceptionsc�:�\rSrSrSrS
SjrSrSrSrSr	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�XlX l[RX5 g)zMCreates an exception. The message is required, but the exception
is optional.N)�_msg�
_exception�	Exception�__init__)�self�msg�	exceptions   �:/opt/alt/python313/lib64/python3.13/xml/sax/_exceptions.pyr	�SAXException.__init__s���	�#�����4�%�c��UR$)z$Return a message for this exception.�r�r
s r
�
getMessage�SAXException.getMessage����y�y�rc��UR$)z9Return the embedded exception, or None if there was none.)rrs r
�getException�SAXException.getExceptions�����rc��UR$)�0Create a string representation of the exception.rrs r
�__str__�SAXException.__str__rrc��[S5e)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)rr)N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r	rrrr�__static_attributes__�rr
rrs ���&����,rrc�<�\rSrSrSrSrSrSrSrSr	Sr
S	rg
)�SAXParseException�*aEncapsulate an XML parse error or warning.

This exception will include information for locating the error in
the original XML document. Note that although the application will
receive a SAXParseException as the argument to the handlers in the
ErrorHandler interface, the application is not actually required
to raise the exception; instead, it can simply read the
information in it and take a different action.

Since this exception is a subclass of SAXException, it inherits
the ability to wrap another exception.c��[RXU5 X0lURR5UlURR5UlURR5Ulg)zECreates the exception. The exception parameter is allowed to be None.N)	rr	�_locator�getSystemId�	_systemId�getColumnNumber�_colnum�
getLineNumber�_linenum)r
rr�locators    r
r	�SAXParseException.__init__7sU�����d��3��
����2�2�4����}�}�4�4�6����
�
�3�3�5��
rc��UR$)zFThe column number of the end of the text where the exception
occurred.)r1rs r
r0�!SAXParseException.getColumnNumberDs���|�|�rc��UR$)zDThe line number of the end of the text where the exception occurred.)r3rs r
r2�SAXParseException.getLineNumberIs���}�}�rc�6�URR5$)zEGet the public identifier of the entity where the exception occurred.)r-�getPublicIdrs r
r;�SAXParseException.getPublicIdMs���}�}�(�(�*�*rc��UR$)zEGet the system identifier of the entity where the exception occurred.)r/rs r
r.�SAXParseException.getSystemIdQs���~�~�rc��UR5nUcSnUR5nUcSnUR5nUcSnU<SU<SU<SUR<3$)rz	<unknown>�?�:z: )r.r2r0r)r
�sysid�linenum�colnums    r
r�SAXParseException.__str__Us]��� � �"���=��E��$�$�&���?��G��%�%�'���>��F�!&������C�Cr)r1r3r-r/N)r"r#r$r%r&r	r0r2r;r.rr'r(rr
r*r**s&��
.�6��
�+��Drr*c��\rSrSrSrSrg)�SAXNotRecognizedException�ez�Exception class for an unrecognized identifier.

An XMLReader will raise this exception when it is confronted with an
unrecognized feature or property. SAX applications and extensions may
use this class for similar purposes.r(N�r"r#r$r%r&r'r(rr
rGrGes��,rrGc��\rSrSrSrSrg)�SAXNotSupportedException�oz�Exception class for an unsupported operation.

An XMLReader will raise this exception when a service it cannot
perform is requested (specifically setting a state or value). SAX
applications and extensions may use this class for similar
purposes.r(NrIr(rr
rKrKos��rrKc��\rSrSrSrSrg)�SAXReaderNotAvailable�yaException class for a missing driver.

An XMLReader module (driver) should raise this exception when it
is first imported, e.g. when a support module cannot be imported.
It also may be raised during parsing, e.g. if executing an external
program is not permitted.r(NrIr(rr
rNrNys��!rrNN)r&rrr*rGrKrNr(rr
�<module>rPsI��'� ,�9� ,�J6D��6D�v,��,��|��!�4�!r

?>