AlkantarClanX12

Your IP : 3.143.218.180


Current Path : /opt/alt/python311/lib64/python3.11/xml/sax/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/xml/sax/__pycache__/_exceptions.cpython-311.opt-1.pyc

�

c��f�����dZddlZejdd�dkrddlmZ[Gd�de��ZGd�d	e��ZGd
�de��ZGd�d
e��ZGd�de��Z	dS)z!Different kinds of SAX Exceptions�N��java)�	Exceptionc�2�eZdZdZdd�Zd�Zd�Zd�Zd�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�L�||_||_tj||��dS)zUCreates an exception. The message is required, but the exception
        is optional.N)�_msg�
_exceptionr�__init__)�self�msg�	exceptions   �:/opt/alt/python311/lib64/python3.11/xml/sax/_exceptions.pyrzSAXException.__init__s+����	�#�����4��%�%�%�%�%�c��|jS)z$Return a message for this exception.�r	�rs r�
getMessagezSAXException.getMessage�
���y�rc��|jS)z9Return the embedded exception, or None if there was none.)r
rs r�getExceptionzSAXException.getExceptions
����rc��|jS)�0Create a string representation of the exception.rrs r�__str__zSAXException.__str__"rrc� �td���)zvAvoids weird error messages if someone does exception[ix] by
        mistake, since Exception has __getitem__ defined.�__getitem__)�AttributeError)r�ixs  rrzSAXException.__getitem__&s���]�+�+�+r)N)	�__name__�
__module__�__qualname__�__doc__rrrrr�rrrr	sn��������&�&�&�&����������,�,�,�,�,rrc�6�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	dS)	�SAXParseExceptiona#Encapsulate 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��t�|||��||_|j���|_|j���|_|j���|_dS)zECreates the exception. The exception parameter is allowed to be None.N)	rr�_locator�getSystemId�	_systemId�getColumnNumber�_colnum�
getLineNumber�_linenum)rr
r�locators    rrzSAXParseException.__init__;sf�����d�C��3�3�3���
���2�2�4�4����}�4�4�6�6����
�3�3�5�5��
�
�
rc��|jS)zNThe column number of the end of the text where the exception
        occurred.)r+rs rr*z!SAXParseException.getColumnNumberHs���|�rc��|jS)zDThe line number of the end of the text where the exception occurred.)r-rs rr,zSAXParseException.getLineNumberMs
���}�rc�4�|j���S)zEGet the public identifier of the entity where the exception occurred.)r'�getPublicIdrs rr2zSAXParseException.getPublicIdQs���}�(�(�*�*�*rc��|jS)zEGet the system identifier of the entity where the exception occurred.)r)rs rr(zSAXParseException.getSystemIdUs
���~�rc��|���}|�d}|���}|�d}|���}|�d}|�d|�d|�d|j��S)rNz	<unknown>�?�:z: )r(r,r*r	)r�sysid�linenum�colnums    rrzSAXParseException.__str__Ysr��� � �"�"���=��E��$�$�&�&���?��G��%�%�'�'���>��F�!&������������C�CrN)
rr r!r"rr*r,r2r(rr#rrr%r%.s}������
.�
.�6�6�6����
���+�+�+����D�D�D�D�Drr%c��eZdZdZdS)�SAXNotRecognizedExceptionz�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.N�rr r!r"r#rrr;r;is������,�,�,�,rr;c��eZdZdZdS)�SAXNotSupportedExceptionaException 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.Nr<r#rrr>r>ss���������rr>c��eZdZdZdS)�SAXReaderNotAvailableaException 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.Nr<r#rrr@r@}s������!�!�!�!rr@)
r"�sys�platform�	java.langrrr%r;r>r@r#rr�<module>rDs&��'�'�
�
�
�
��<�����v���#�#�#�#�#�#�� ,� ,� ,� ,� ,�9� ,� ,� ,�J6D�6D�6D�6D�6D��6D�6D�6D�v,�,�,�,�,��,�,�,������|����!�!�!�!�!�4�!�!�!�!�!r