Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/orm/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/orm/__pycache__/exc.cpython-312.pyc
�

���g����dZddlmZddlmZddlmZddlmZddlmZddlmZddlm	Z	d	d
l
mZddlm
Zdd
lm
Z
ddl
mZddl
mZerd	dlmZd	dlmZd	dlmZe	de��ZeefZ	Gd�dej4�ZeZGd�dej4�ZGd�dej<�ZGd�dej4�Z Gd�dej4�Z!Gd�d e�Z"Gd!�d"e�Z#Gd#�d$ej<�Z$Gd%�d&ej<�Z%Gd'�d(ej<�Z&d-d)�Z'e
jPd*�d.d+��Z)y,)/zSQLAlchemy ORM exceptions.�)�annotations)�Any)�Optional)�Tuple)�Type)�
TYPE_CHECKING)�TypeVar�)�_mapper_property_as_plain_name�)�exc)�util)�MultipleResultsFound)�
NoResultFound)�LoaderStrategy)�MapperProperty)�
InstanceState�_T)�boundc��eZdZdZy)�StaleDataErroraaAn operation encountered database state that is unaccounted for.

    Conditions which cause this to happen include:

    * A flush may have attempted to update or delete rows
      and an unexpected number of rows were matched during
      the UPDATE or DELETE statement.   Note that when
      version_id_col is used, rows in UPDATE or DELETE statements
      are also matched against the current known version
      identifier.

    * A mapped object with version_id_col was refreshed,
      and the version number coming back from the database does
      not match that of the object itself.

    * A object is detached from its parent object, however
      the object was previously attached to a different parent
      identity which was garbage collected, and a decision
      cannot be made if the new parent was really the most
      recent "parent".

    N��__name__�
__module__�__qualname__�__doc__���C/opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/orm/exc.pyrr$s��rrc��eZdZdZy)�
FlushErrorz0A invalid condition was detected during flush().Nrrrrr!r!@s��:rr!c��eZdZdZy)�
UnmappedErrorz?Base for exceptions that involve expected mappings not present.Nrrrrr#r#Ds��Irr#c��eZdZdZy)�ObjectDereferencedErrorzPAn operation cannot complete due to an object being garbage
    collected.

    Nrrrrr%r%Hs��rr%c��eZdZdZdZy)�DetachedInstanceErrorzSAn attempt to access unloaded attributes on a
    mapped instance that is detached.�bhk3N)rrrr�coderrrr'r'Os��)��Drr'c�L�eZdZdZej
d�ddd��Zdd�Zy)	�UnmappedInstanceErrorz;An mapping operation was requested for an unknown instance.�sqlalchemy.orm.baseNc�h�tjj}|s8	|jt	|��tt	|��}d|�d|�d�}tj||�y#t$r<dtt	|���d�}t|t�r|dt|�zz
}Y�[wxYw)NzClass z| is mapped, but this instance lacks instrumentation.  This occurs when the instance is created before sqlalchemy.orm.mapper(z
) was called.�Class '�' is not mappedz;; was a class (%s) supplied where an instance was required?)
r�	preloaded�orm_base�class_mapper�type�_safe_cls_name�UnmappedClassError�
isinstancer#�__init__)�self�obj�msg�base�names     rr7zUnmappedInstanceError.__init__Ys����~�~�&�&���
��!�!�$�s�)�,�%�d�3�i�0��
&*�4�1��	���t�S�)��&�
���t�C�y� 9�:�/�J���c�4�(��$�&4�S�&9�:��C��
�s�7A,�,AB1�0B1c�<�|jd|jdffS�Nr��	__class__�args�r8s r�
__reduce__z UnmappedInstanceError.__reduce__p����~�~��d�i�i��l�3�3�3r�N)r9�objectr:�
Optional[str]��returnr�rrrrr�preload_moduler7rCrrrr+r+Vs*��E��T���.�/�*�0�*�,4rr+c�"�eZdZdZddd�Zdd�Zy)r5z8An mapping operation was requested for an unknown class.Nc�J�|st|�}tj||�yrE)�_default_unmappedr#r7)r8�clsr:s   rr7zUnmappedClassError.__init__ws���#�C�(�C����t�S�)rc�<�|jd|jdffSr>r?rBs rrCzUnmappedClassError.__reduce__|rDrrE)rOzType[_T]r:rGrH)rrrrr7rCrrrr5r5ts��B�*�
4rr5c�L�eZdZdZej
d�ddd��Zdd�Zy)	�ObjectDeletedErrora�A refresh operation failed to retrieve the database
    row corresponding to an object's known primary key identity.

    A refresh operation proceeds when an expired attribute is
    accessed on an object, or when :meth:`_query.Query.get` is
    used to retrieve an object which is, upon retrieval, detected
    as expired.   A SELECT is emitted for the target row
    based on primary key; if no row is returned, this
    exception is raised.

    The true meaning of this exception is simply that
    no row exists for the primary key identifier associated
    with a persistent object.   The row may have been
    deleted, or in some cases the primary key updated
    to a new value, outside of the ORM's management of the target
    object.

    r,Nc��tjj}|sd|j|�z}tj
j
||�y)NzDInstance '%s' has been deleted, or its row is otherwise not present.)rr0r1�	state_str�sa_exc�InvalidRequestErrorr7)r8�stater:r;s    rr7zObjectDeletedError.__init__�sH���~�~�&�&���0�26�.�.��2G�H�
�
	�"�"�+�+�D�#�6rc�<�|jd|jdffSr>r?rBs rrCzObjectDeletedError.__reduce__�rDrrE)rWzInstanceState[Any]r:rGrHrJrrrrRrR�s.���&�T���.�/�	7�0�	7�4rrRc��eZdZdZy)�UnmappedColumnErrorz5Mapping operation was requested on an unknown column.NrrrrrZrZ�s��?rrZc�,�eZdZdZ										dd�Zy)�LoaderStrategyExceptionz2A loader strategy for an attribute does not exist.c
��|�'tjj|d|�d|���y|�J�tjj|dtj|��d|�dt|��dt|��d�	�y)NzCan't find strategy z for z
Can't apply "z" strategy to property "z", which is a "z7"; this loader strategy is intended to be used with a "z".)rUrVr7r�clsname_as_plain_namer)r8�applied_to_property_type�requesting_property�
applies_to�actual_strategy_type�strategy_keys      rr7z LoaderStrategyException.__init__�s{�� �'��&�&�/�/���!4�6�
��)�)�)��&�&�/�/��
�.�.�/C�D�'�2�3K�L�2�:�>��
rN)
r_�	Type[Any]r`zMapperProperty[Any]raz#Optional[Type[MapperProperty[Any]]]rbzOptional[Type[LoaderStrategy]]rczTuple[Any, ...])rrrrr7rrrr\r\�s:��<��"+��1��8�	�
=��&�
rr\c��	dj|j|jf�}|S#t$rt	|dd�}|�t|�}Y|SwxYw)N�.r)�joinrr�AttributeError�getattr�repr)rO�cls_names  rr4r4�s]��!��8�8�S�^�^�S�\�\�:�;��
�O��	�!��3�
�D�1�����C�y�H���O�	!�s�'+�#A�Ar,c���tjj}	|j|�j}t|�}|sd|�d�Sy#t
tftz$ri}Y�.wxYw)Nr.r/)	rr0r1�manager_of_class�mappersr5�	TypeError�NO_STATEr4)rOr;rnr<s    rrNrN�sw���>�>�"�"�D���'�'��,�4�4���#��D�����o�.�.���	���	�����	�s�A�A&�%A&N)rOrdrI�str)rOrdrIrG)*r�
__future__r�typingrrrrrr	rr�r
rUrr�
interfacesrrrWrrrh�KeyErrorrp�SQLAlchemyErrorr�ConcurrentModificationErrorr!rVr#r%r'r+r5rRrZr\r4rKrNrrr�<module>rys0��!�"����� ��0���&���*�*�$��T�����H�%��L��V�+�+��2-��;��'�'�;�J�F�.�.�J��f�4�4���F�2�2��4�M�4�<	4��	4�!4��3�3�!4�H@�&�4�4�@��f�8�8��B�����*�+��,�r

ZeroDay Forums Mini