]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add informative failure modes to _DeferredMapperConfig
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 30 Jan 2019 05:53:10 +0000 (23:53 -0600)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 31 Jan 2019 03:06:27 +0000 (21:06 -0600)
commit147f6d382c3b6f06c8efa5a24c07c9849473e7af
treeb3c1288d8d493bba638a3b07fd2bfdc7defa8fa6
parentb8f9517cddf41dbb47ae4ad120141c7ab1a29ac5
Add informative failure modes to _DeferredMapperConfig

Added some helper exceptions that invoke when a mapping based on
:class:`.AbstractConcreteBase`, :class:`.DeferredReflection`, or
:class:`.AutoMap` is used before the mapping is ready to be used, which
contain descriptive information on the class, rather than falling through
into other failure modes that are less informative.

Fixes: #4470
Change-Id: I9bc51697f63cedaa7809a0adb17b2398c209e289
doc/build/changelog/unreleased_13/4470.rst [new file with mode: 0644]
lib/sqlalchemy/ext/automap.py
lib/sqlalchemy/ext/declarative/api.py
lib/sqlalchemy/ext/declarative/base.py
test/ext/declarative/test_basic.py
test/ext/declarative/test_inheritance.py
test/ext/declarative/test_reflection.py
test/ext/test_automap.py