From 71ede00f140fa6b67a8ac17df68b80079efa8dc2 Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Wed, 13 Jun 2018 03:09:31 -0600 Subject: [PATCH] bpo-31378: Document sqlite3.OperationalError exception (GH-7677) --- Doc/library/sqlite3.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index d7eaea638f..7d3cab9b67 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -821,6 +821,13 @@ Exceptions exists, syntax error in the SQL statement, wrong number of parameters specified, etc. It is a subclass of :exc:`DatabaseError`. +.. exception:: OperationalError + + Exception raised for errors that are related to the database's operation + and not necessarily under the control of the programmer, e.g. an unexpected + disconnect occurs, the data source name is not found, a transaction could + not be processed, etc. It is a subclass of :exc:`DatabaseError`. + .. _sqlite3-types: -- 2.49.0