8000 bpo-31378: Document sqlite3.OperationalError exception (GH-7677) · python/cpython@71ede00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 71ede00

Browse files
ZackerySpytzberkerpeksag
authored andcommitted
bpo-31378: Document sqlite3.OperationalError exception (GH-7677)
1 parent b9d8ad5 commit 71ede00

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/sqlite3.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,13 @@ Exceptions
821821
exists, syntax error in the SQL statement, wrong number of parameters
822822
specified, etc. It is a subclass of :exc:`DatabaseError`.
823823

824+
.. exception:: OperationalError
825+
826+
Exception raised for errors that are related to the database's operation
827+
and not necessarily under the control of the programmer, e.g. an unexpected
828+
disconnect occurs, the data source name is not found, a transaction could
829+
not be processed, etc. It is a subclass of :exc:`DatabaseError`.
830+
824831

825832
.. _sqlite3-types:
826833

0 commit comments

Comments
 (0)
0