$70 GRAYBYTE WORDPRESS FILE MANAGER $26

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/hc_python/lib/python3.12/site-packages/mysqlx/__pycache__/

HOME
Current File : /opt/hc_python/lib/python3.12/site-packages/mysqlx/__pycache__//errors.cpython-312.pyc
�

H��g�"���dZddlZddlZddlmZej
ddk(Zerd�ZnddlmZGd�d	e	�Z
Gd
�de	�ZGd�d
e
�ZGd�de
�Z
Gd�de
�ZGd�de
�ZGd�de
�ZGd�de
�ZGd�de
�ZGd�de
�ZGd�de
�Zd�Zd�Zd �Zd6d!�Zd"�Zid#e�d$e
�d%e�d&e�d'e�d(e�d)e�d*e�d+e�d,e�d-e�d.e�d/e�d0e
�d1e�d2e
�d3e
�e
eeeeeeeeeeeee
d4��Zeeeeeeed5�Zy)7zHImplementation of the Python Database API Specification v2.0 exceptions.�N�)�get_client_error�c��t|ttf�rtj|t|��Stj||�S)zKWrapper around struct.unpack handling buffer as bytes and strings.
        )�
isinstance�	bytearray�bytes�struct�unpack_from�buffer)�fmt�bufs  �d/opt/hc_python/lib64/python3.12/site-packages/../../../lib/python3.12/site-packages/mysqlx/errors.py�
struct_unpackr"s=���c�I�u�-�.��%�%�c�6�#�;�7�7��!�!�#�s�+�+�)�unpackc�*��eZdZdZd�fd�	Zd�Z�xZS)�Errorz<Exception that is base class for all other error exceptions.c�F��tt|��||_|j|_|xsd|_||_|jsJd|j
cxkrdkr5nn2t|j
�|_|�0	|j|z|_n|jsdx|_|_|jr�|j
dk7rq|j
tr|jjd�n|jd�}|jrd}|j|d	<nd
}|jdi|��|_|j
|j|jf|_
y#t$r4}dj|jt|��|_Yd}~��d}~wwxYw)N���i�i�z{0} (Warning: {1})z
Unknown error�utf8)�errno�msgz{errno} ({state}): {msg}�statez{errno}: {msg}�)�superr�__init__r�	_full_msgr�sqlstater�	TypeError�format�str�PY2�encode�args)	�selfrr�valuesr�err�fieldsr
�	__class__s	        �rrzError.__init__.sG���
�e�T�#�%����������[�b��
� ��
��x�x�T�T�Z�Z�6�$�6�'��
�
�3�D�H��!�O�#�x�x�&�0�D�H����(7�7�D�N�T�X��8�8��
�
�b�(����25�t�x�x���v�.�4�8�8��F��}�}�0��"&�-�-��w��&��'�S�Z�Z�1�&�1�D�N��Z�Z�������?��	��#!�O�3�:�:�4�8�8�S��X�N�D�H�H��O�s�?E#�#	F �,*F�F c��|jS)N)r)r&s r�__str__z
Error.__str__Ms���~�~�r)NNNN)�__name__�
__module__�__qualname__�__doc__rr,�
__classcell__)r*s@rrr,s���F�@�>rrc��eZdZdZy)�Warningz!Exception for important warnings.N�r-r.r/r0rrrr3r3Qs��+�rr3c��eZdZdZy)�InterfaceErrorz.Exception for errors related to the interface.Nr4rrrr6r6V���8�rr6c��eZdZdZy)�
DatabaseErrorz-Exception for errors related to the database.Nr4rrrr9r9[s��7�rr9c��eZdZdZy)�
InternalErrorz.Exception for errors internal database errors.Nr4rrrr;r;`r7rr;c��eZdZdZy)�OperationalErrorz9Exception for errors related to the database's operation.Nr4rrrr=r=es��C�rr=c��eZdZdZy)�ProgrammingErrorz(Exception for errors programming errors.Nr4rrrr?r?js��2�rr?c��eZdZdZy)�IntegrityErrorz4Exception for errors regarding relational integrity.Nr4rrrrArAo���>�rrAc��eZdZdZy)�	DataErrorz<Exception for errors reporting problems with processed data.Nr4rrrrDrDts��F�rrDc��eZdZdZy)�NotSupportedErrorzCException for errors when an unsupported database feature was used.Nr4rrrrFrFys��M�rrFc��eZdZdZy)�	PoolErrorz4Exception for errors relating to connection pooling.Nr4rrrrHrH~rBrrHc���	t|t�r|St|�}|dk(r|dS|dkr|dd|z
zz}td|�dS|dd|z
zz}td|�dS#�xYw)z'Unpacks the given buffer to an integer.rr��z<I�z<Q)r�int�lenr)r�length�tmps   r�intreadrQ�s���
��c�3���J��S����Q�;��q�6�M�
�q�[���1�v�:�.�.�C� ��s�+�A�.�.���1�v�:�.�.�C� ��s�+�A�.�.���
�s�A"�A"�A"�A"�"A%c�:�	t|d|�}||d|fS#�xYw)zORead an integer from buffer.

    Returns a tuple (truncated buffer, int).
    rN)rQ�r�size�ress   r�read_intrV�s4����c�!�D�k�"��
���J������
�s��c��|d|}||d|fS)zdReads bytes from a buffer.

    Returns a tuple with buffer less the read bytes, and the bytes.
    rNrrSs   r�
read_bytesrX�s ��
�a��+�C����J���rc���	t||||��S#t$rYnwxYw|s
t||��S	t|dd|||��S#t$rt|||��cYSwxYw)z�Get the exception matching the MySQL error.

    This function will return an exception based on the SQLState. The given
    message will be passed on in the returned exception.

    Returns an Exception.
    )rrr)rrrr)�_ERROR_EXCEPTIONS�KeyErrorr9�_SQLSTATE_CLASS_EXCEPTION)rrrs   r�get_mysql_exceptionr]�s���
� ��'�C�u�19�;�	;���
��
�����E�2�2�F�(��!�A��7�C�u�AI�K�	K���F���E�H�E�E�F�s��	��A�A �A c�
�dx}}	|ddk7rtd��	d}	|dd}t	|d�\}}|dd	k7r+t|ttf�r|jd
�}n7|}n4t|ddd�\}}|jd
�}|jd
�}t|||�S#t$r$}tdj|��cYd}~Sd}~wwxYw#t$r$}tdj|��cYd}~Sd}~wwxYw)z�Returns an exception object based on the MySQL error.

    Returns an exception object based on the MySQL error in the given
    packet.

    Returns an Error-Object.
    NrJ�zPacket is not an error packetz&Failed getting Error information ({0})�rr�#rr)�
ValueError�
IndexErrorr6r!rVrr	r�decoderXr]�	Exception)�packetr�errmsgr(rs     r�
get_exceptionrh�s!����E�F�.��!�9����<�=�=���H�<������ ���+�
����!�9��?��&�5�)�"4�5����v�.����)�&���*�a�8��F�H����v�.�H��]�]�6�*�F�
#�5�&�(�;�;��-�.��!�!'����.�	.��.��$�.��!�!'����.�	.��.�s;�B%�A;C�%	C�.C
�C�
C�	D�C=�7D�=D�02�07�08�0A�21�22�23�24�25�26�27�28�2A�2B�2C�2D�2E)�33�34�35�37�3C�3D�3F�40�42�44�HZ�XA�0K�HY)i�i�i�i�iii
)NN)r0�sysr
�localesr�version_infor#rrrerr3r6r9r;r=r?rArDrFrHrQrVrXr]rhr\rZrrr�<module>r�s��0O�
�
�%�	���q��Q����,�/�"�I�"�J	�i�	�
	�U�	�
	�E�	�
	�M�	�
	�}�	�
	�}�	�
	�]�	�
	�
�	�
	�
�	�
	��	�
�$��F�4#<�L ��)� ��-� �	�
� �	�
�	 �
	�)� �	�)�
 �	�.� �	�
� �	�
� �	�
� �	�
� �	�
� �	�
� �	�-� �	�
� � 	�-�! �"	�-�# �$�
�
�
�
�
�
�
�
�
�
�
�
�
�? ��F�
�
�
�
�
�
��r


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2025 8.03 AM
root / root
0755
__init__.cpython-312.pyc
8.913 KB
4 Apr 2025 8.03 AM
root / root
0644
authentication.cpython-312.pyc
2.747 KB
4 Apr 2025 8.03 AM
root / root
0644
charsets.cpython-312.pyc
5.945 KB
4 Apr 2025 8.03 AM
root / root
0644
compat.cpython-312.pyc
1.263 KB
4 Apr 2025 8.03 AM
root / root
0644
connection.cpython-312.pyc
25.173 KB
4 Apr 2025 8.03 AM
root / root
0644
constants.cpython-312.pyc
0.997 KB
4 Apr 2025 8.03 AM
root / root
0644
crud.cpython-312.pyc
21.175 KB
4 Apr 2025 8.03 AM
root / root
0644
dbdoc.cpython-312.pyc
2.068 KB
4 Apr 2025 8.03 AM
root / root
0644
errorcode.cpython-312.pyc
50.992 KB
4 Apr 2025 8.03 AM
root / root
0644
errors.cpython-312.pyc
8.783 KB
4 Apr 2025 8.03 AM
root / root
0644
expr.cpython-312.pyc
43.187 KB
4 Apr 2025 8.03 AM
root / root
0644
expr_unparser.cpython-312.pyc
6.062 KB
4 Apr 2025 8.03 AM
root / root
0644
protocol.cpython-312.pyc
23.256 KB
4 Apr 2025 8.03 AM
root / root
0644
result.cpython-312.pyc
35.239 KB
4 Apr 2025 8.03 AM
root / root
0644
statement.cpython-312.pyc
64.563 KB
4 Apr 2025 8.03 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF