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

5
LINES

< > BotCompany Repo | #1002207 // softFail - a more efficient exception-like mechanism

JavaX fragment (include)

1  
static new ThreadLocal<O> softFail_lastMsg; // value is the unformatted or formatted msg
2  
3  
static void softFail(S msg, O... args) {
4  
  softFail_lastMsg.set(args.length == 0 ? msg : new O[] {msg, args});
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002207
Snippet name: softFail - a more efficient exception-like mechanism
Eternal ID of this version: #1002207/1
Text MD5: 5ae20a006b94d53e2bef1f8c6a18b271
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-27 17:36:04
Source code size: 206 bytes / 5 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 587 / 865
Referenced in: [show references]