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

3
LINES

< > BotCompany Repo | #1032834 // trueUnlessException

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

Libraryless. Click here for Pure Java version (3790L/22K).

static bool trueUnlessException(Runnable r) {
  try { callF(r); true; } catch e { false; }
}

Author comment

Began life as a copy of #1015874

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032834
Snippet name: trueUnlessException
Eternal ID of this version: #1032834/1
Text MD5: 01255745059ec3799338b69cb5cedc63
Transpilation MD5: de5267988e72d9acf15f8348bee8a80c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 16:18:31
Source code size: 94 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 145 / 194
Referenced in: [show references]