8000 gh-89018: Improve documentation of `sqlite3` exceptions by erlend-aasland · Pull Request #27645 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-89018: Improve documentation of sqlite3 exceptions #27645

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

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
Reword ProgrammingError
  • Loading branch information
erlend-aasland committed Jun 1, 2022
commit aa140d4a3acc5f48dc18621d622e790e36cd899a
8 changes: 4 additions & 4 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ Blob Objects
Exceptions
----------

The exception hierarchy is defined by DB-API 2.0.
The exception hierarchy is defined by the DB-API 2.0 (:pep:`249`).

.. exception:: Warning

Expand Down Expand Up @@ -1167,9 +1167,9 @@ The exception hierarchy is defined by DB-API 2.0.

.. exception:: ProgrammingError

Exception raised for ``sqlite3`` API programming errors.
for example syntax errors in SQL statements, and wrong number of bindings
supplied to a query.
Exception raised for ``sqlite3`` API programming errors,
for example supplying the wrong number of bindings to a query,
or trying to operate on a closed :class:`Connection`.
``ProgrammingError`` is a subclass of :exc:`DatabaseError`.

.. exception:: NotSupportedError
Expand Down
0