Libraryless. Click here for Pure Java version (2292L/15K).
1 | svoid ignoreExceptionContaining(S text, Runnable r) {
|
2 | try {
|
3 | callF(r); |
4 | } catch e {
|
5 | if (cic(str(e), text)) {
|
6 | //print("Ignoring exception: " + e);
|
7 | } else |
8 | throw rethrow(e); |
9 | } |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026128 |
| Snippet name: | ignoreExceptionContaining |
| Eternal ID of this version: | #1026128/2 |
| Text MD5: | 0c6e5becd46d080fe5ba8328b6c6ef38 |
| Transpilation MD5: | 213f13a777f2bce17e860156db379847 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-03-01 11:29:47 |
| Source code size: | 211 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 376 / 549 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |