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

6
LINES

< > BotCompany Repo | #1020623 // innerException2 - descends only when message is empty

JavaX fragment (include)

static Throwable innerException2(Throwable e) {
  if (e == null) null;
  while (empty(e.getMessage()) && e.getCause() != null)
    e = e.getCause();
  return e;
}

Author comment

Began life as a copy of #1001151

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020623
Snippet name: innerException2 - descends only when message is empty
Eternal ID of this version: #1020623/1
Text MD5: c41cbe3cebf9b7cdb3caf35a1c767bcd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-28 20:28:33
Source code size: 167 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 288 / 338
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)