Module excepthook
[hide private]
[frames] | no frames]

Module excepthook

source code

Exception hook If some unexpected error occures it can be shown in a nice looking dialog. Especially useful is the traceback view.

Things to extend: Clicking on the filename should open an editor. Things to consider: Mail exceptions, copy to clipboard or send to bug tracker.

Classes [hide private]
  ExceptHookDialog
Functions [hide private]
 
on_error(exc_type, exc_obj, exc_tb)
This is the callback function for sys.excepthook
source code
 
show_current_error(title=None)
Call this function to show the current error.
source code
 
install()
activates the error handler
source code
 
uninstall()
removes the error handler
source code
Function Details [hide private]

show_current_error(title=None)

source code 

Call this function to show the current error. It can be used inside an except-block.