parameters: (exctype, value, trace)
docstring: Handler for all unhandled exceptions
      @param exctype: Exception Type
      @param value: Error Value
      @param trace: Trace back info
docstring_summary: Handler for all unhandled exceptions
      @param exctype: Exception Type
      @param value: Error Value
      @param trace: Trace back info
docstring_tokens: Handler for all unhandled exceptions @param exctype : Exception Type @param value : Error Value @param trace : Trace back info
function: def ExceptionHook(exctype, value, trace):
      """Handler for all unhandled exceptions
      @param exctype: Exception Type
      @param value: Error Value
      @param trace: Trace back info
  
      """
      # Format the traceback
      exc = traceback.format_exception(exctype, value, trace)
      exc.insert(0, u"*** %s ***%s" % (eclib.TimeStamp(), os.linesep))
      ftrace = u"".join(exc)
  
      # Ensure that error gets raised to console as well
      print ftrace
  
      # If abort has been set and we get here again do a more forcefull shutdown
      if EdErrorDialog.ABORT:
          os._exit(1)
  
      # Prevent multiple reporter dialogs from opening at once
      if not EdErrorDialog.REPORTER_ACTIVE and not EdErrorDialog.ABORT:
          dlg = EdErrorDialog(ftrace)
          dlg.ShowModal()
          dlg.Destroy()
function_tokens: def ExceptionHook ( exctype , value , trace ) : # Format the traceback exc = traceback . format_exception ( exctype , value , trace ) exc . insert ( 0 , u"*** %s ***%s" % ( eclib . TimeStamp ( ) , os . linesep ) ) ftrace = u"" . join ( exc ) # Ensure that error gets raised to console as well print ftrace # If abort has been set and we get here again do a more forcefull shutdown if EdErrorDialog . ABORT : os . _exit ( 1 ) # Prevent multiple reporter dialogs from opening at once if not EdErrorDialog . REPORTER_ACTIVE and not EdErrorDialog . ABORT : dlg = EdErrorDialog ( ftrace ) dlg . ShowModal ( ) dlg . Destroy ( )