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

Bases: Exception

custom exception

source on GitHub

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

Bases: 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)
Parameters:
  • description – message

  • ex – sqlite exception

  • sql – SQL instruction

  • log – log the exception

source on GitHub

__str__()

Return str(self).