gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions (#95523)

This commit is contained in:
Erlend Egeberg Aasland 2022-08-01 11:15:07 +02:00 committed by GitHub
parent fc31a13dc1
commit 1e6b63542e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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