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

8
LINES

< > BotCompany Repo | #1005081 // nullCall - safely call function, return null if fails [silently for now]

JavaX fragment (include)

static O nullCall(O f) {
  try {
    ret callFunction(f);
  } catch e {
    silentException(e);
    null;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005081
Snippet name: nullCall - safely call function, return null if fails [silently for now]
Eternal ID of this version: #1005081/1
Text MD5: 599174b29db90da77ef9ff516436d1e7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-10 17:25:45
Source code size: 118 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 556 / 570
Referenced in: [show references]