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).

1  
sS pcallOrExceptionText(O f, O... args) {
2  
  try {
3  
    ret str(callF(f, args));
4  
  } catch e {
5  
    _handleException(e);
6  
    ret exceptionToStringShort(e);
7  
  }
8  
}
9  
10  
sS pcallOrExceptionText(IF0<S> f) {
11  
  ret pcallOrExceptionText((O) f);
12  
}

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: 323 / 387
Version history: 1 change(s)
Referenced in: [show references]