From 961332dfd3dbff4c63ed4d9f8b5de937aa63475b Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 13 Jun 2018 02:30:09 -0700 Subject: [PATCH] bpo-31378: Document sqlite3.OperationalError exception (GH-7677) (cherry picked from commit 71ede00f140fa6b67a8ac17df68b80079efa8dc2) Co-authored-by: Zackery Spytz --- Doc/library/sqlite3.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst index ef0c0bf64c..b9ec24a655 100644 --- a/Doc/library/sqlite3.rst +++ b/Doc/library/sqlite3.rst @@ -764,6 +764,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.40.0