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

5
LINES

< > BotCompany Repo | #1009495 // quickFail functions - throw RuntimeException without stack trace

JavaX fragment (include)

1  
static RuntimeException quickFail() { throw new QuickException("fail"); }
2  
static RuntimeException quickFail(Throwable e) { throw asQuickException(e); }
3  
static RuntimeException quickFail(O msg) { throw new QuickException(S.valueOf(msg)); }
4  
static RuntimeException quickFail(S msg) { throw new QuickException(unnull(msg)); }
5  
static RuntimeException quickFail(S msg, Throwable innerException) { throw new QuickException(msg, innerException); }

Author comment

Began life as a copy of #1000659

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009495
Snippet name: quickFail functions - throw RuntimeException without stack trace
Eternal ID of this version: #1009495/1
Text MD5: c3b3c3797f6bb37567cb58c5882b0335
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-04 18:04:01
Source code size: 446 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 515 / 571
Referenced in: [show references]