Libraryless. Click here for Pure Java version (38L/1K).
1 | static L<Throwable> allCausesIncludingSelf(Throwable t) { |
2 | new L<Throwable> out; |
3 | while (t != null) { |
4 | out.add(t); |
5 | t = t.getCause(); |
6 | } |
7 | ret out; |
8 | } |
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: | 158 / 220 |
Referenced in: | [show references] |