mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-01 13:28:30 -04:00
Fix references to exceptions
This commit is contained in:
Vendored
+1
-1
@@ -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:
|
||||
|
||||
|
||||
@@ -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.::
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user