Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1001151 // getInnerException

JavaX fragment (include)

1  
static Throwable getInnerException(Throwable e) {
2  
  if (e == null) null;
3  
  while (e.getCause() != null)
4  
    e = e.getCause();
5  
  return e;
6  
}
7  
8  
static Throwable getInnerException(Runnable r) {
9  
  ret getInnerException(getException(r));
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001151
Snippet name: getInnerException
Eternal ID of this version: #1001151/2
Text MD5: bce587751f40c7cd8684c15e4ad68c5e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-30 20:03:36
Source code size: 242 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 700 / 3099
Version history: 1 change(s)
Referenced in: [show references]