On this page
sqlite3.Warning
Prev: sqlite3.TimestampFromTicks | Up: sqlite3
Rel: sqlite3.adapt, sqlite3.Binary, sqlite3.Blob, sqlite3.complete_statement
Ref: docs.python.org โ sqlite3.Warning
Tags: #public #python3 #stdlib #sqlite3
Import
import sqlite3
from sqlite3 import Warning
Signature & Overview
sqlite3.Warning(...)
sqlite3.Warning class.
Methods & Attributes
Warning.add_note(self, note, /)โ Add a note to the exceptionWarning.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import sqlite3
assert issubclass(sqlite3.Warning, Exception)
Gotchas
- DB-API 2.0 warning class: Defined for DB-API compliance;
sqlite3itself rarely raises it.
REPL Inspect
from sqlite3 import Warning
help(Warning)
Linked from
Related notes
- tuts/python3/stdlib_module/sqlite3 Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/TimestampFromTicks Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/adapt Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/Binary Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/Blob Linked here; shared tags: #stdlib
- tuts/python3/stdlib_module/sqlite3/complete_statement Linked here; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib