From 957457459fd65e964f151aa9fbb494343d6324fa Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Tue, 12 Jun 2018 23:50:10 -0600 Subject: [PATCH] bpo-31378: Add missing docs for sqlite3.OperationalError The wording is taken from PEP 249. --- Doc/library/sqlite3.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index d7eaea638f82cb..7d3cab9b67307c 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: