Skip to content

Commit

Permalink
pythongh-95273: Clarify when sqlite_* attributes are added to sqlite3…
Browse files Browse the repository at this point in the history
… exceptions (pythonGH-95523)

(cherry picked from commit 1e6b635)

Co-authored-by: Erlend Egeberg Aasland <[email protected]>
  • Loading branch information
erlend-aasland authored and miss-islington committed Aug 1, 2022
1 parent e4541c4 commit f947a2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,9 @@ The exception hierarchy is defined by the DB-API 2.0 (:pep:`249`).
Use this to catch all errors with one single :keyword:`except` statement.
``Error`` is a subclass of :exc:`Exception`.

If the exception originated from within the SQLite library,
the following two attributes are added to the exception:

.. attribute:: sqlite_errorcode

The numeric error code from the
Expand Down

0 comments on commit f947a2e

Please sign in to comment.