1100 @param exceptionType type of exception raised (string) |
1100 @param exceptionType type of exception raised (string) |
1101 @param exceptionMessage message given by the exception (string) |
1101 @param exceptionMessage message given by the exception (string) |
1102 @param stackTrace list of stack entries (list of string) |
1102 @param stackTrace list of stack entries (list of string) |
1103 """ |
1103 """ |
1104 self.ui.raise_() |
1104 self.ui.raise_() |
1105 self.ui.activateWindow() |
|
1106 QApplication.processEvents() |
1105 QApplication.processEvents() |
1107 if exceptionType is None: |
1106 if exceptionType is None: |
1108 E5MessageBox.critical( |
1107 E5MessageBox.critical( |
1109 self.ui, Program, |
1108 self.ui, Program, |
1110 self.tr('An unhandled exception occured.' |
1109 self.tr('An unhandled exception occured.' |
1130 pass |
1129 pass |
1131 if res != E5MessageBox.No: |
1130 if res != E5MessageBox.No: |
1132 self.viewmanager.setFileLine( |
1131 self.viewmanager.setFileLine( |
1133 stackTrace[0][0], stackTrace[0][1], True) |
1132 stackTrace[0][0], stackTrace[0][1], True) |
1134 if res != E5MessageBox.No: |
1133 if res != E5MessageBox.No: |
|
1134 self.ui.activateWindow() |
1135 if Preferences.getDebugger("BreakAlways"): |
1135 if Preferences.getDebugger("BreakAlways"): |
1136 res = E5MessageBox.Yes |
1136 res = E5MessageBox.Yes |
1137 else: |
1137 else: |
1138 if stackTrace: |
1138 if stackTrace: |
1139 if exceptionType.startswith('unhandled'): |
1139 if exceptionType.startswith('unhandled'): |