101 0, self.tr('An unhandled exception occured.' |
101 0, self.tr('An unhandled exception occured.' |
102 ' See the shell window for details.')) |
102 ' See the shell window for details.')) |
103 return |
103 return |
104 |
104 |
105 if exceptionMessage == '': |
105 if exceptionMessage == '': |
106 itm.setText(0, "{0}".format(exceptionType)) |
106 text = "{0}".format(exceptionType) |
107 else: |
107 else: |
108 itm.setText(0, "{0}, {1}".format(exceptionType, exceptionMessage)) |
108 text = "{0}, {1}".format(exceptionType, exceptionMessage) |
|
109 |
|
110 itm.setText(0, text) |
|
111 itm.setToolTip(0, text) |
109 |
112 |
110 # now add the call stack, most recent call first |
113 # now add the call stack, most recent call first |
111 for entry in stackTrace: |
114 for entry in stackTrace: |
112 excitm = QTreeWidgetItem(itm) |
115 excitm = QTreeWidgetItem(itm) |
113 excitm.setText(0, "{0}, {1:d}".format(entry[0], entry[1])) |
116 excitm.setText(0, "{0}, {1:d}".format(entry[0], entry[1])) |