]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix references to exceptions
authorVraj Mohan <r.vrajmohan@gmail.com>
Thu, 14 Nov 2013 15:42:35 +0000 (10:42 -0500)
committerVraj Mohan <r.vrajmohan@gmail.com>
Thu, 14 Nov 2013 19:31:37 +0000 (14:31 -0500)
doc/build/orm/mapper_config.rst
lib/sqlalchemy/exc.py
lib/sqlalchemy/orm/base.py

index 7749b93142bf2b23309f1abee6d82e8035c90597..9cd9abaca43f573d77082ff80d024256c41d5688 100644 (file)
@@ -1337,7 +1337,7 @@ If a transaction elsewhere has modifed the row independently, this version id
 will no longer match, and the UPDATE statement will report that no rows matched;
 this is the condition that SQLAlchemy tests, that exactly one row matched our
 UPDATE (or DELETE) statement.  If zero rows match, that indicates our version
-of the data is stale, and a :class:`.StaleDataError` is raised.
+of the data is stale, and a :exc:`.StaleDataError` is raised.
 
 .. _custom_version_counter:
 
index 7ebdc3983c78f9ef64ceaa7cafe02b6192b173ac..3c0c6c3657141ca94b9f41d3a4826e0786eca06d 100644 (file)
@@ -6,9 +6,9 @@
 
 """Exceptions used with SQLAlchemy.
 
-The base exception class is :class:`.SQLAlchemyError`.  Exceptions which are
+The base exception class is :exc:`.SQLAlchemyError`.  Exceptions which are
 raised as a result of DBAPI exceptions are all subclasses of
-:class:`.DBAPIError`.
+:exc:`.DBAPIError`.
 
 """
 
@@ -169,7 +169,7 @@ class UnboundExecutionError(InvalidRequestError):
 
 class DontWrapMixin(object):
     """A mixin class which, when applied to a user-defined Exception class,
-    will not be wrapped inside of :class:`.StatementError` if the error is
+    will not be wrapped inside of :exc:`.StatementError` if the error is
     emitted within the process of executing a statement.
 
     E.g.::
index 7e56b0228fd06e84721cccf9b67cdefac32a1b9c..22c92b7c1f65bfc091c75b6beada2447608e02ed 100644 (file)
@@ -338,8 +338,8 @@ def class_mapper(class_, configure=True):
     """Given a class, return the primary :class:`.Mapper` associated
     with the key.
 
-    Raises :class:`.UnmappedClassError` if no mapping is configured
-    on the given class, or :class:`.ArgumentError` if a non-class
+    Raises :exc:`.UnmappedClassError` if no mapping is configured
+    on the given class, or :exc:`.ArgumentError` if a non-class
     object is passed.
 
     Equivalent functionality is available via the :func:`.inspect`