1 | static Throwable unwrapTrivialExceptionWraps(Throwable e) { |
2 | if (e == null) ret e; |
3 | while (e.getClass() == RuntimeException.class |
4 | && e.getCause() != null && eq(e.getMessage(), str(e.getCause()))) |
5 | e = e.getCause(); |
6 | ret e; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015676 |
Snippet name: | unwrapTrivialExceptionWraps - unwrap rethrow()s |
Eternal ID of this version: | #1015676/1 |
Text MD5: | 219aa0e39c6733b2de9d6e312d09a0b2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-21 11:15:53 |
Source code size: | 240 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 313 / 451 |
Referenced in: | [show references] |