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

8
LINES

< > BotCompany Repo | #1036423 // allCausesIncludingSelf

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (38L/1K).

static L<Throwable> allCausesIncludingSelf(Throwable t) {
  new L<Throwable> out;
  while (t != null) {
    out.add(t);
    t = t.getCause();
  }
  ret out;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036423
Snippet name: allCausesIncludingSelf
Eternal ID of this version: #1036423/1
Text MD5: cc09e3df456e1ee56fe7f2e49dea9168
Transpilation MD5: 54eca10701de3ae5cd48a48fd68e65dc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-12-11 19:15:44
Source code size: 165 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 157 / 218
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)