File: //opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/orm/__pycache__/exc.cpython-37.pyc
B
��4]� � @ s d Z ddlmZ ddlmZ eefZG dd� dej�Z e Z
G dd� dej�ZG dd � d ej�Z
G d
d� dej�ZG dd
� d
ej�ZG dd� de
�ZG dd� de
�ZG dd� dej�ZG dd� dej�ZG dd� dej�ZG dd� dej�ZG dd� dej�Zdd� Ze�d�dd � �Zd!S )"zSQLAlchemy ORM exceptions.� )�exc)�utilc @ s e Zd ZdZdS )�StaleDataErroraa An 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__� r r �E/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/orm/exc.pyr s r c @ s e Zd ZdZdS )�
FlushErrorz0A invalid condition was detected during flush().N)r r r r r r r r
r - s r c @ s e Zd ZdZdS )�
UnmappedErrorz?Base for exceptions that involve expected mappings not present.N)r r r r r r r r
r 1 s r c @ s e Zd ZdZdS )�ObjectDereferencedErrorzPAn operation cannot complete due to an object being garbage
collected.
N)r r r r r r r r
r
5 s r
c @ s e Zd ZdZdZdS )�DetachedInstanceErrorzSAn attempt to access unloaded attributes on a
mapped instance that is detached.Zbhk3N)r r r r �coder r r r
r <