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

7
LINES

< > BotCompany Repo | #1033668 // catchError

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

Libraryless. Click here for Pure Java version (4672L/26K).

svoid catchError(DoneFlag doneFlag, Runnable r) {
  try {
    r?.run();
  } catch e {
    doneFlag.setError(e);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033668
Snippet name: catchError
Eternal ID of this version: #1033668/1
Text MD5: 3890aedf496265f995e28716b93b95e3
Transpilation MD5: cea03629dbe6b67c5f9db6214b0d8e12
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-26 17:16:23
Source code size: 123 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 71 / 113
Referenced in: [show references]