Hacked By AnonymousFox
�
�܋f�E � �8 � d Z ddlmZ ddlmZ dZ G d� de� � Z G d� de� � Z G d � d
e� � Z G d� de� � Z G d
� de� � Z
G d� de� � Z G d� de� � Z G d� de� � Z
G d� de
� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d e� � Z G d!� d"e� � Z G d#� d$e� � Z G d%� d&ee� � Z G d'� d(e� � Z G d)� d*e� � Z G d+� d,e� � Z G d-� d.e� � Z G d/� d0e� � Z G d1� d2e� � Z G d3� d4e� � ZdZ G d5� d6e� � Z! G d7� d8e!� � Z" G d9� d:e"� � Z# G d;� d<e"� � Z$ G d=� d>e$� � Z% G d?� d@e$� � Z& G dA� dBe$� � Z' G dC� dDe$� � Z( G dE� dFe$� � Z) G dG� dHe$� � Z* G dI� dJe+� � Z, G dK� dLe-� � Z. G dM� dNe/� � Z0dS )Oz�Exceptions used with SQLAlchemy.
The base exception class is :exc:`.SQLAlchemyError`. Exceptions which are
raised as a result of DBAPI exceptions are all subclasses of
:exc:`.DBAPIError`.
� )�
_preloaded)�compatNc �R � � e Zd ZdZdZ� fd�Zd� Zej fd�Z d� Z
d� Zd� Z� xZ
S ) �SQLAlchemyErrorzGeneric error class.Nc � �� |� dd � � }|�|| _ t t | � � j |i |�� d S )N�code)�popr �superr �__init__)�self�arg�kwr � __class__s ��E/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/exc.pyr zSQLAlchemyError.__init__ sK �� ��v�v�f�d�#�#�����D�I�-��o�t�$�$�-�s�9�b�9�9�9�9�9� c �: � | j sdS dt �d| j �d�S )N� z3(Background on this error at: http://sqlalche.me/e/�/�))r �_version_token�r s r � _code_strzSQLAlchemyError._code_str! s2 � ��y�
��2�
� #�N�N��I�I�I� �
r c �@ � t | j � � dk rs| j d }|r0t |t j � � rt j |d� � }n2t j s|st |� � }nt j |� � }|S t | j � � S )Nr � zutf-8) �len�args�
isinstancer �binary_types�decode_backslashreplace�py3k�str� text_type)r �
as_unicode�texts r �_messagezSQLAlchemyError._message. s� � � �t�y�>�>�Q����9�Q�<�D��
.�j��v�/B�C�C�
.��5�d�G�D�D��� ��
.�J�
.��4�y�y����'��-�-���K�
�t�y�>�>�!r c �p � | � |� � }| j r|�d| � � � ��}|S )N� )r% r r )r r# �messages r �_sql_messagezSQLAlchemyError._sql_messageR s= � ��-�-�
�+�+���9� <�!(���$�.�.�*:�*:�*:�;�G��r c �@ � | � t j � � S �N)r) r r r s r �__str__zSQLAlchemyError.__str__Z s � �� � ���-�-�-r c �. � | � d�� � S )NT�r# )r) r s r �__unicode__zSQLAlchemyError.__unicode__] s � �� � �D� �1�1�1r )�__name__�
__module__�__qualname__�__doc__r r r r r r% r) r, r/ �
__classcell__�r s @r r r s� �� � � � � ����D�:� :� :� :� :�� � � #)�+� ""� ""� ""� ""�H� � �.� .� .�2� 2� 2� 2� 2� 2� 2r r c � � e Zd ZdZdS )�
ArgumentErrorz�Raised when an invalid or conflicting function argument is supplied.
This error generally corresponds to construction time state errors.
N�r0 r1 r2 r3 � r r r7 r7 a � � � � � � �� � � r r7 c �"