module sql.database_exception

Inheritance diagram of pyensae.sql.database_exception

Short summary

module pyensae.sql.database_exception

defines logged exceptions for SQL requests

source on GitHub

Classes

class

truncated documentation

DBException

custom exception

ExceptionSQL

exception related to SQL instructions and only them

Methods

method

truncated documentation

__init__

__str__

Documentation

defines logged exceptions for SQL requests

source on GitHub

exception pyensae.sql.database_exception.DBException[source]

Bases: Exception

custom exception

source on GitHub

exception pyensae.sql.database_exception.ExceptionSQL(description, ex, sql, log=True)[source]

Bases: pyensae.sql.database_exception.DBException

exception related to SQL instructions and only them

source on GitHub

Parameters
  • description – message

  • ex – sqlite exception

  • sql – SQL instruction

  • log – log the exception

source on GitHub

__init__(description, ex, sql, log=True)[source]
Parameters
  • description – message

  • ex – sqlite exception

  • sql – SQL instruction

  • log – log the exception

source on GitHub

__str__()[source]

Return str(self).