Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/__pycache__/exc.cpython-311.pyc

�

�܋f�E��8�dZddlmZddlmZdZGd�de��ZGd�de��ZGd	�d
e��ZGd�de��Z	Gd
�de��Z
Gd�de��ZGd�de��ZGd�de��Z
Gd�de
��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�d e��ZGd!�d"e��ZGd#�d$e��ZGd%�d&ee��ZGd'�d(e��ZGd)�d*e��ZGd+�d,e��ZGd-�d.e��ZGd/�d0e��ZGd1�d2e��ZGd3�d4e��ZdZ Gd5�d6e��Z!Gd7�d8e!��Z"Gd9�d:e"��Z#Gd;�d<e"��Z$Gd=�d>e$��Z%Gd?�d@e$��Z&GdA�dBe$��Z'GdC�dDe$��Z(GdE�dFe$��Z)GdG�dHe$��Z*GdI�dJe+��Z,GdK�dLe-��Z.GdM�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��eZdZdZdZ�fd�Zd�Zejfd�Z	d�Z
d�Zd�Z�xZ
S)	�SQLAlchemyErrorzGeneric error class.Nc���|�dd��}|�||_tt|��j|i|��dS)N�code)�popr�superr�__init__)�self�arg�kwr�	__class__s    ��E/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/exc.pyrzSQLAlchemyError.__init__sK����v�v�f�d�#�#�����D�I�-��o�t�$�$�-�s�9�b�9�9�9�9�9�c�:�|jsdSdt�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�	�
rc�@�t|j��dkrs|jd}|r0t|tj��rtj|d��}n2tjs|st|��}ntj|��}|St|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�>�>�!rc�p�|�|��}|jr|�d|�����}|S)N� )r%rr)rr#�messages   r�_sql_messagezSQLAlchemyError._sql_messageRs=���-�-�
�+�+���9�	<�!(���$�.�.�*:�*:�*:�;�G��rc�@�|�tj��S�N)r)rr rs r�__str__zSQLAlchemyError.__str__Zs��� � ���-�-�-rc�.�|�d���S)NT�r#)r)rs r�__unicode__zSQLAlchemyError.__unicode__]s��� � �D� �1�1�1r)�__name__�
__module__�__qualname__�__doc__rrrrr r%r)r,r/�
__classcell__�rs@rrrs�����������D�:�:�:�:�:����#)�+�""�""�""�""�H���.�.�.�2�2�2�2�2�2�2rrc��eZdZdZdS)�
ArgumentErrorz�Raised when an invalid or conflicting function argument is supplied.

    This error generally corresponds to construction time state errors.

    N�r0r1r2r3�rrr7r7a����������rr7c�"��eZdZdZ�fd�Z�xZS)�ObjectNotExecutableErrorzqRaised when an object is passed to .execute() that can't be
    executed as SQL.

    .. versionadded:: 1.1

    c�^��tt|���d|z��dS)NzNot an executable object: %r)r
r<r)r�targetrs  �rrz!ObjectNotExecutableError.__init__qs8���
�&��-�-�6�6�*�V�3�	
�	
�	
�	
�	
r)r0r1r2r3rr4r5s@rr<r<isB���������
�
�
�
�
�
�
�
�
rr<c��eZdZdZdS)�NoSuchModuleErrorzpRaised when a dynamically-loaded module (usually a database dialect)
    of a particular name cannot be located.Nr8r9rrr@r@ws������/�/�/�/rr@c��eZdZdZdS)�NoForeignKeysErrorzURaised when no foreign keys can be located between two selectables
    during a join.Nr8r9rrrBrB|s���������rrBc��eZdZdZdS)�AmbiguousForeignKeysErrorzhRaised when more than one foreign key matching can be located
    between two selectables during a join.Nr8r9rrrDrD�s������.�.�.�.rrDc� �eZdZdZdd�Zd�ZdS)�CircularDependencyErrora	Raised by topological sorts when a circular dependency is detected.

    There are two scenarios where this error occurs:

    * In a Session flush operation, if two objects are mutually dependent
      on each other, they can not be inserted or deleted via INSERT or
      DELETE statements alone; an UPDATE will be needed to post-associate
      or pre-deassociate one of the foreign key constrained values.
      The ``post_update`` flag described at :ref:`post_update` can resolve
      this cycle.
    * In a :attr:`_schema.MetaData.sorted_tables` operation, two
      :class:`_schema.ForeignKey`
      or :class:`_schema.ForeignKeyConstraint` objects mutually refer to each
      other.  Apply the ``use_alter=True`` flag to one or both,
      see :ref:`use_alter`.

    Nc��|�&|dd�d�|D����zz
}n|}t�|||���||_||_dS)Nz (%s)z, c3�4K�|]}t|��V��dSr+)�repr)�.0�ss  r�	<genexpr>z3CircularDependencyError.__init__.<locals>.<genexpr>�s(����*C�*C�q�4��7�7�*C�*C�*C�*C�*C�*Cr�r)�joinrr�cycles�edges)rr(rOrP�msgrs      rrz CircularDependencyError.__init__�se���;��w����*C�*C�F�*C�*C�*C�!C�!C�C�C�G�G��G�� � ��w�T� �:�:�:������
�
�
rc�F�|jd|j|j|jdffS�Nr)rrOrPrrs r�
__reduce__z"CircularDependencyError.__reduce__�s"���~��d�k�4�:�t�y��|�L�L�Lr)NN�r0r1r2r3rrTr9rrrFrF�sF��������$����M�M�M�M�MrrFc��eZdZdZdS)�CompileErrorz2Raised when an error occurs during SQL compilationNr8r9rrrWrW�s������<�<�<�<rrWc�(��eZdZdZdZd�fd�	Z�xZS)�UnsupportedCompilationErrorz�Raised when an operation is not supported by the given compiler.

    .. seealso::

        :ref:`faq_sql_expression_string`

        :ref:`error_l7de`
    �l7deNc�v��tt|���d|�d|�|rd|znd����dS)Nz	Compiler z can't render element of type z: %sr)r
rYr)r�compiler�element_typer(rs    �rrz$UnsupportedCompilationError.__init__�sX���
�)�4�0�0�9�9�9��x�x���7�'J�v��'7�'7��'J�
L�	
�	
�	
�	
�	
rr+)r0r1r2r3rrr4r5s@rrYrY�sN����������D�
�
�
�
�
�
�
�
�
�
rrYc��eZdZdZdS)�IdentifierErrorz;Raised when a schema name is beyond the max character limitNr8r9rrr_r_�s������E�E�E�Err_c��eZdZdZdZdS)�DisconnectionErrora�A disconnect is detected on a raw DB-API connection.

    This error is raised and consumed internally by a connection pool.  It can
    be raised by the :meth:`_events.PoolEvents.checkout`
    event so that the host pool
    forces a retry; the exception will be caught three times in a row before
    the pool gives up and raises :class:`~sqlalchemy.exc.InvalidRequestError`
    regarding the connection attempt.

    FN�r0r1r2r3�invalidate_poolr9rrrara�s������	�	��O�O�Orrac��eZdZdZdZdS)�InvalidatePoolErrora�Raised when the connection pool should invalidate all stale connections.

    A subclass of :class:`_exc.DisconnectionError` that indicates that the
    disconnect situation encountered on the connection probably means the
    entire pool should be invalidated, as the database has been restarted.

    This exception will be handled otherwise the same way as
    :class:`_exc.DisconnectionError`, allowing three attempts to reconnect
    before giving up.

    .. versionadded:: 1.2

    TNrbr9rrrere�s���������O�O�Orrec��eZdZdZdS)�TimeoutErrorz@Raised when a connection pool times out on getting a connection.Nr8r9rrrgrg�s������J�J�J�Jrrgc��eZdZdZdS)�InvalidRequestErrorzvSQLAlchemy was asked to do something it can't do.

    This error generally corresponds to runtime state errors.

    Nr8r9rrriri�r:rric��eZdZdZdS)�NoInspectionAvailablezaA subject passed to :func:`sqlalchemy.inspection.inspect` produced
    no context for inspection.Nr8r9rrrkrk�s������"�"�"�"rrkc��eZdZdZdS)�ResourceClosedErrorzcAn operation was requested from a connection, cursor, or other
    object that's in a closed state.Nr8r9rrrmrm�s������(�(�(�(rrmc��eZdZdZdS)�NoSuchColumnErrorz6A nonexistent column is requested from a ``RowProxy``.Nr8r9rrroro�s������@�@�@�@rroc��eZdZdZdS)�NoReferenceErrorzDRaised by ``ForeignKey`` to indicate a reference cannot be resolved.Nr8r9rrrqrq�s������N�N�N�Nrrqc��eZdZdZd�Zd�ZdS)�NoReferencedTableErrorzQRaised by ``ForeignKey`` when the referred ``Table`` cannot be
    located.

    c�J�t�||��||_dSr+)rqr�
table_name)rr(�tnames   rrzNoReferencedTableError.__init__s#���!�!�$��0�0�0�����rc�8�|j|jd|jffSrS)rrrurs rrTz!NoReferencedTableError.__reduce__
s���~��	�!��d�o�>�>�>rNrUr9rrrsrss<��������
 � � �?�?�?�?�?rrsc��eZdZdZd�Zd�ZdS)�NoReferencedColumnErrorzRRaised by ``ForeignKey`` when the referred ``Column`` cannot be
    located.

    c�X�t�||��||_||_dSr+)rqrru�column_name)rr(rv�cnames    rrz NoReferencedColumnError.__init__s-���!�!�$��0�0�0���� ����rc�D�|j|jd|j|jffSrS)rrrur{rs rrTz"NoReferencedColumnError.__reduce__s&���N�
�Y�q�\�4�?�D�,<�=�
�	
rNrUr9rrryrys<��������
!�!�!�

�
�
�
�
rryc��eZdZdZdS)�NoSuchTableErrorz7Table does not exist or is not visible to a connection.Nr8r9rrrr s������A�A�A�Arrc��eZdZdZdS)�UnreflectableTableErrorzUTable exists but can't be reflected for some reason.

    .. versionadded:: 1.2

    Nr8r9rrr�r�$r:rr�c��eZdZdZdS)�UnboundExecutionErrorzASQL was attempted without a database connection to execute it on.Nr8r9rrr�r�,s������K�K�K�Krr�c��eZdZdZdS)�
DontWrapMixina8A mixin class which, when applied to a user-defined Exception class,
    will not be wrapped inside of :exc:`.StatementError` if the error is
    emitted within the process of executing a statement.

    E.g.::

        from sqlalchemy.exc import DontWrapMixin

        class MyCustomException(Exception, DontWrapMixin):
            pass

        class MySpecialType(TypeDecorator):
            impl = String

            def process_bind_param(self, value, dialect):
                if value == 'invalid':
                    raise MyCustomException("invalid!")

    Nr8r9rrr�r�0s���������rr�c�t�eZdZdZdZ	dZ	dZ	dZ			d	d�Zd�Z	d�Z
ejd��d���Z
dS)
�StatementErroravAn error occurred during execution of a SQL statement.

    :class:`StatementError` wraps the exception raised
    during execution, and features :attr:`.statement`
    and :attr:`.params` attributes which supply context regarding
    the specifics of the statement which had an issue.

    The wrapped exception object is available in
    the :attr:`.orig` attribute.

    NFc��t�|||���||_||_||_||_||_g|_dS)NrM)rr�	statement�params�orig�ismulti�hide_parameters�detail)rr(r�r�r�r�rr�s        rrzStatementError.__init__bsN��	� � ��w�T� �:�:�:�"��������	����.�������rc�:�|j�|��dSr+)r��append)rrQs  r�
add_detailzStatementError.add_detailts������3�����rc�h�|j|jd|j|j|j|j|jffSrS)rrr�r�r�r�r�rs rrTzStatementError.__reduce__ws9���N��	�!�������	��$���

�

�
	
rzsqlalchemy.sql.utilc�2�|�|���g}|jr�|s)tjsdtj|j��z}n
d|jz}|�|��|jrW|jr|�d��n:|�|jd|j	���}|�d|z��|�
��}|r|�|��d�d�|jD��|z��S)	Nr.z	[SQL: %s]z3[SQL parameters hidden due to hide_parameters=True]�
)r�z[parameters: %r]�
c��g|]}d|z��S)z(%s)r9)rJ�dets  r�
<listcomp>z/StatementError._sql_message.<locals>.<listcomp>�s��>�>�>�3�&�3�,�>�>�>r)
r%r�rr �safe_bytestringr�r�r��_repr_paramsr�rrNr�)r�utilr#�details�stmt_detail�params_repr�code_strs       rr)zStatementError._sql_message�s=���=�=�J�=�7�7�8���>�	E��
;�f�k�
;�)�F�,B��N�-�-����*�D�N�:���N�N�;�'�'�'��{�	
E��'�E��N�N�M�����#'�"3�"3���R���#4�#�#�K��N�N�#5��#C�D�D�D��>�>�#�#���	%��N�N�8�$�$�$��y�y�>�>�$�+�>�>�>��H�I�I�Ir)FNN)r0r1r2r3r�r�r�r�rr�rTr�dependenciesr)r9rrr�r�Js�������
�
��I�N�
�F�E��D�%��G��
������$ � � �
�
�
��Z��2�3�3�J�J�4�3�J�J�Jrr�c�L�eZdZdZdZe				dd���Zd�Z				dd�ZdS)	�
DBAPIErrora	Raised when the execution of a database operation fails.

    Wraps exceptions raised by the DB-API underlying the
    database operation.  Driver-specific implementations of the standard
    DB-API exception types are wrapped by matching sub-types of SQLAlchemy's
    :class:`DBAPIError` when possible.  DB-API's ``Error`` type maps to
    :class:`DBAPIError` in SQLAlchemy, otherwise the names are identical.  Note
    that there is no guarantee that different DB-API implementations will
    raise the same exception type for any given error condition.

    :class:`DBAPIError` features :attr:`~.StatementError.statement`
    and :attr:`~.StatementError.params` attributes which supply context
    regarding the specifics of the statement which had an issue, for the
    typical case when the error was raised within the context of
    emitting a SQL statement.

    The wrapped exception object is available in the
    :attr:`~.StatementError.orig` attribute. Its type and properties are
    DB-API implementation specific.

    �dbapiFNc		���t|t��rt|t��rt|t��r|S|��t|t��rE|rCtd|jj�d|jj�d|j	d��|||||j
|���St||��s4|r2td|jj�d|jj�d|��|||||���St��}	|jjD]O}
|
j}|r|j
�||��}||	vr%t|	|t ��r
|	|}n�P|||||||j
|���S)N�(�.�) r)r�rr�)r�r�)�connection_invalidatedr�rr�)r�
BaseException�	Exceptionr�rr�rr1r0rr�globals�__mro__�dbapi_exception_translation_map�get�
issubclassr�)�clsr�r�r��dbapi_base_errr�r��dialectr��glob�super_�names            r�instancezDBAPIError.instance�s���
�t�]�+�+�	�4>�t�Y�4O�4O�	�
��m�
,�
,�	��K����$��0�0�
�Y�
�%�~���1�1�1���/�/�/��	�!���	����$3���#�
�
�
�
� ��n�5�5�

�)�

�%�~���1�1�1���/�/�/���	����$3�#������9�9�D��.�0�
�
�������"�B�F�F��d���D��4�<�<�J�t�D�z�:�$F�$F�<��t�*�C��E���s����#9�+����
�
�
�	
rc�\�|j|j|j|j|j|j|jffSr+)rr�r�r�r�r�r�rs rrTzDBAPIError.__reduce__s6���N������	��$��+���

�

�
	
rc
��	t|��}n)#t$r}	dt|	��z}Yd}	~	nd}	~	wwxYwt�|d|jj�d|jj�d|��||||||���||_dS)Nz.Error in str() of DB-API-generated exception: r�r�r�)rr�)r!r�r�rrr1r0r�)
rr�r�r�r�r�rr�r$�es
          rrzDBAPIError.__init__s���	M��t�9�9�D�D���	M�	M�	M�C�c�!�f�f�L�D�D�D�D�D�D�����	M��������D��~�(�(�(�$�.�*A�*A�*A�4�4�
I�������	 �
	
�
	
�
	
�'=��#�#�#s��
8�3�8)FFNN)	r0r1r2r3r�classmethodr�rTrr9rrr�r��s���������,�D���$���F
�F
�F
��[�F
�P
�
�
�$�$�
��=�=�=�=�=�=rr�c��eZdZdZdZdS)�InterfaceErrorzWraps a DB-API InterfaceError.�rvf5N�r0r1r2r3rr9rrr�r�+�������(�(��D�D�Drr�c��eZdZdZdZdS)�
DatabaseErrorzWraps a DB-API DatabaseError.�4xp6Nr�r9rrr�r�1�������'�'��D�D�Drr�c��eZdZdZdZdS)�	DataErrorzWraps a DB-API DataError.�9h9hNr�r9rrr�r�7s������#�#��D�D�Drr�c��eZdZdZdZdS)�OperationalErrorz Wraps a DB-API OperationalError.�e3q8Nr�r9rrr�r�=�������*�*��D�D�Drr�c��eZdZdZdZdS)�IntegrityErrorzWraps a DB-API IntegrityError.�gkpjNr�r9rrr�r�Cr�rr�c��eZdZdZdZdS)�
InternalErrorzWraps a DB-API InternalError.�2j85Nr�r9rrr�r�Ir�rr�c��eZdZdZdZdS)�ProgrammingErrorz Wraps a DB-API ProgrammingError.�f405Nr�r9rrr�r�Or�rr�c��eZdZdZdZdS)�NotSupportedErrorz!Wraps a DB-API NotSupportedError.�tw8gNr�r9rrr�r�Us������+�+��D�D�Drr�c��eZdZdZdS)�SADeprecationWarning�*Issued once per usage of a deprecated API.Nr8r9rrr�r�^�������4�4�4�4rr�c��eZdZdZdS)�SAPendingDeprecationWarningr�Nr8r9rrr�r�br�rr�c��eZdZdZdS)�	SAWarningzIssued at runtime.Nr8r9rrr�r�fs���������rr�)1r3r�rrrr�rr7r<r@rBrDrFrWrYr_rarergrirkrm�KeyErrorrorqrsryrr�r��objectr��UnmappedColumnErrorr�r�r�r�r�r�r�r�r�r��DeprecationWarningr��PendingDeprecationWarningr��RuntimeWarningr�r9rr�<module>r�s�������������������H2�H2�H2�H2�H2�i�H2�H2�H2�V�����O����
�
�
�
�
�}�
�
�
�/�/�/�/�/�
�/�/�/�
���������
.�.�.�.�.�
�.�.�.�
M�M�M�M�M�o�M�M�M�@=�=�=�=�=�?�=�=�=�
�
�
�
�
�,�
�
�
�&F�F�F�F�F�o�F�F�F���������������,����$K�K�K�K�K�?�K�K�K������/����"�"�"�"�"�/�"�"�"�
(�(�(�(�(�-�(�(�(�
A�A�A�A�A��"5�A�A�A�O�O�O�O�O�*�O�O�O�?�?�?�?�?�-�?�?�?�
�
�
�
�
�.�
�
�
�$B�B�B�B�B�*�B�B�B������1����L�L�L�L�L�/�L�L�L������F����.��SJ�SJ�SJ�SJ�SJ�_�SJ�SJ�SJ�lH=�H=�H=�H=�H=��H=�H=�H=�V�����Z���������J���������
���������}���������]���������M���������}���������
����5�5�5�5�5�-�5�5�5�5�5�5�5�5�";�5�5�5�����������r

Hacked By AnonymousFox1.0, Coded By AnonymousFox