Skip to content

Commit

Permalink
gh-95273: Clarify when sqlite_* attributes are added to sqlite3 excep…
Browse files Browse the repository at this point in the history
…tions (GH-95523)

(cherry picked from commit 1e6b635)

Co-authored-by: Erlend Egeberg Aasland <[email protected]>
  • Loading branch information
miss-islington and erlend-aasland authored Aug 1, 2022
1 parent e4541c4 commit ad2872f
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 ad2872f

Please sign in to comment.