Package wsatools :: Package DbConnect :: Module DbSession :: Class DbSession :: Class DisconnectError
[hide private]

Class DisconnectError

source code


Exception thrown if a programmer tries to access a database connection that is closed, to either attempt close it or commit/rollback transactions. This is a programming error rather than an exception caused by an unexpected loss of database connection.

Instance Methods [hide private]
 
__init__(self, db, msg='')
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, db, msg='')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • db (str) - Name of database.
  • msg (str) - Optional specific message for this exception.
Overrides: object.__init__