Skip to content

Commit 961332d

Browse files
bpo-31378: Document sqlite3.OperationalError exception (GH-7677)
(cherry picked from commit 71ede00) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 439a9b6 commit 961332d

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
@@ -764,6 +764,13 @@ Exceptions
764764
exists, syntax error in the SQL statement, wrong number of parameters
765765
specified, etc. It is a subclass of :exc:`DatabaseError`.
766766

767+
.. exception:: OperationalError
768+
769+
Exception raised for errors that are related to the database's operation
770+
and not necessarily under the control of the programmer, e.g. an unexpected
771+
disconnect occurs, the data source name is not found, a transaction could
772+
not be processed, etc. It is a subclass of :exc:`DatabaseError`.
773+
767774

768775
.. _sqlite3-types:
769776

0 commit comments

Comments
 (0)