diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-08-30 18:32:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-30 18:32:21 (GMT) |
commit | 86d8b465231473f850cc5e906013ba8581ddb503 (patch) | |
tree | 38821067898cf1fb5fec7b0102e08776ce9df3fe /Doc/library | |
parent | f62763d26755260c31c717fb396550e00eb6b2a0 (diff) | |
download | cpython-86d8b465231473f850cc5e906013ba8581ddb503.zip cpython-86d8b465231473f850cc5e906013ba8581ddb503.tar.gz cpython-86d8b465231473f850cc5e906013ba8581ddb503.tar.bz2 |
bpo-16379: expose SQLite error codes and error names in `sqlite3` (GH-27786)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/sqlite3.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index 6399bed..7c60188 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -836,6 +836,20 @@ Exceptions The base class of the other exceptions in this module. It is a subclass of :exc:`Exception`. + .. attribute:: sqlite_errorcode + + The numeric error code from the + `SQLite API <https://sqlite.org/rescode.html>`_ + + .. versionadded:: 3.11 + + .. attribute:: sqlite_errorname + + The symbolic name of the numeric error code + from the `SQLite API <https://sqlite.org/rescode.html>`_ + + .. versionadded:: 3.11 + .. exception:: DatabaseError Exception raised for errors that are related to the database. |