static void popupError(final Throwable throwable) { throwable.printStackTrace(); // print stack trace to console for the experts SwingUtilities.invokeLater(new Runnable() { public void run() { String text = throwable.toString(); //text = cutPrefix(text, "java.lang.RuntimeException: "); JOptionPane.showMessageDialog(null, text); } }); }
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: | 623 / 826 |
Referenced in: | #698 - Standard Function Adder (new, developing) #1000893 - popup function #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) |