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

12
LINES

< > BotCompany Repo | #1017730 // pcallOrExceptionText

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

Libraryless. Click here for Pure Java version (2531L/16K).

sS pcallOrExceptionText(O f, O... args) {
  try {
    ret str(callF(f, args));
  } catch e {
    _handleException(e);
    ret exceptionToStringShort(e);
  }
}

sS pcallOrExceptionText(IF0<S> f) {
  ret pcallOrExceptionText((O) f);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017730
Snippet name: pcallOrExceptionText
Eternal ID of this version: #1017730/2
Text MD5: fa50a826e54cf37f3234ddabf886bc27
Transpilation MD5: 5ecb2c671e790e536d242a7828a01d27
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-13 21:12:03
Source code size: 243 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 386 / 463
Version history: 1 change(s)
Referenced in: [show references]