94 @param exceptionMessage message given by the exception (string) |
94 @param exceptionMessage message given by the exception (string) |
95 @param stackTrace list of stack entries. |
95 @param stackTrace list of stack entries. |
96 """ |
96 """ |
97 itm = QTreeWidgetItem(self) |
97 itm = QTreeWidgetItem(self) |
98 if exceptionType is None: |
98 if exceptionType is None: |
99 itm.setText(0, |
99 itm.setText( |
100 self.trUtf8('An unhandled exception occured.' |
100 0, self.trUtf8('An unhandled exception occured.' |
101 ' See the shell window for details.')) |
101 ' See the shell window for details.')) |
102 return |
102 return |
103 |
103 |
104 if exceptionMessage == '': |
104 if exceptionMessage == '': |
105 itm.setText(0, "{0}".format(exceptionType)) |
105 itm.setText(0, "{0}".format(exceptionType)) |
106 else: |
106 else: |