From: Erlend Egeberg Aasland Date: Mon, 1 Aug 2022 09:15:07 +0000 (+0200) Subject: gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions (#95523) X-Git-Tag: v3.12.0a1~775 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e6b63542e4856436c5c12148a6608ef9d148b71;p=thirdparty%2FPython%2Fcpython.git gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions (#95523) --- diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index a0b5c73d7a4a..35eb404513b4 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -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