2.3.17. vacumm.misc.exception – Exception utilities

Functions:
Classes:

Exceptions utilities

class ExceptionDebugger(exit=True, nframe=None)[source]

Bases: object

Usefull for debugging.

Retreive details about exceptions like locals for each frames.

This provides informations about the program state (variables) for each frame of the call stack.

bindExceptHook()[source]

Install this classe’s exception traceback feature to sys.excepthook. getDetailedExceptionInfo() will then be called when an exception is not handled by user’s code (and then before exiting).

exceptHook(etype, evalue, tb)[source]

Exception hook used when installed by bindExceptHook()

getDetailedExceptionInfo(etype=None, evalue=None, tb=None)[source]

Print the usual traceback information, followed by a (huge!) listing of all the local variables in each frame.

TODO: use StringIO

bindExceptHook(*a, **k)[source]

See ExceptionDebugger.bindExceptHook()

getDetailedExceptionInfo(*a, **k)[source]

See ExceptionDebugger.getDetailedExceptionInfo()