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 (python#95523)
  • Loading branch information
erlend-aasland authored Aug 1, 2022
1 parent fc31a13 commit 1e6b635
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 @@ -1320,6 +1320,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 1e6b635

Please sign in to comment.