Package wtf :: Package ext :: Package db :: Module _exceptions
[hide private]
[frames] | no frames]

Module _exceptions

source code

DB Exceptions.


Author: André Malo

Classes [hide private]
  DBError
Base DB exception
  DBConfigurationError
DB configuration error
  DBAPIError
DB API Error
  InterfaceError
Interface error
  DatabaseError
Database error
  DataError
Data error
  OperationalError
Operational error
  IntegrityError
Integrity error
  InternalError
Internal error
  ProgrammingError
Programming error
  NotSupportedError
Not supported error
Functions [hide private]
 
translate(adapter)
Translate exception to wtf.ext DBAPI exception
source code
Variables [hide private]
  __package__ = 'wtf.ext.db'
Function Details [hide private]

translate(adapter)

source code 

Translate exception to wtf.ext DBAPI exception

The new exception is raised.

Parameters:
  • adapter (module) - DBAPI module

Warning: This is a private function. Use wtf.ext.db.driver(dbname).translate_exception().