1 | static void popupError(final Throwable throwable) { |
2 | throwable.printStackTrace(); // print stack trace to console for the experts |
3 | SwingUtilities.invokeLater(new Runnable() { |
4 | public void run() { |
5 | String text = throwable.toString(); |
6 | //text = cutPrefix(text, "java.lang.RuntimeException: "); |
7 | JOptionPane.showMessageDialog(null, text); |
8 | } |
9 | }); |
10 | } |
Snippet is not live.
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #2000367 |
Snippet name: | popupError |
Eternal ID of this version: | #2000367/1 |
Text MD5: | 2bb70200c9bbcac166375aa74e4bb581 |
Author: | stefan |
Category: | javax functions |
Type: | New Tinybrain snippet |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-06-20 16:44:16 |
Source code size: | 398 bytes / 10 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 622 / 826 |
Referenced in: | [show references] |