Libraryless. Click here for Pure Java version (3795L/22K).
1 | static <A> A nuLike innerExceptionOfType(Class<A> c, Throwable e) { |
2 | while ping (true) { |
3 | if (e == null) null; |
4 | if (isInstanceOf(e, c)) |
5 | ret (A) e; |
6 | e = e.getCause(); |
7 | } |
8 | } |
Began life as a copy of #1001151
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032477 |
Snippet name: | innerExceptionOfType |
Eternal ID of this version: | #1032477/3 |
Text MD5: | 4318f68ba7291ed1a44f1e92cad9977e |
Transpilation MD5: | 342392eb1f2c81d7047373207e574bd2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-08 07:57:46 |
Source code size: | 194 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 185 / 264 |
Version history: | 2 change(s) |
Referenced in: | [show references] |