Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-89018: Improve documentation of sqlite3 exceptions #27645

Merged
merged 19 commits into from
Jun 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review
erlend-aasland committed May 31, 2022
commit 91494dd1077e9f11c005490dffef5cd82d08b722
5 changes: 2 additions & 3 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
@@ -1102,7 +1102,7 @@ The exception hierarchy is defined by DB-API 2.0.

.. exception:: Warning

This exception is not raised by :mod:`sqlite3`.
This exception is not raised by ``sqlite3``.
``Warning`` is a subclass of :exc:`Exception`.

.. exception:: Error
@@ -1156,8 +1156,7 @@ The exception hierarchy is defined by DB-API 2.0.
.. exception:: IntegrityError

Exception raised when the relational integrity of the database is affected,
for example, a foreign key check fails.
``IntegrityError`` is a subclass of :exc:`DatabaseError`.
e.g. a foreign key check fails. It is a subclass of :exc:`DatabaseError`.

.. exception:: InternalError