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


< > BotCompany Repo | #1007211 // rethrow - rethrow an exception as RuntimeException

JavaX fragment (include)

static RuntimeException rethrow(Throwable t) {
  ifndef LeanMode
  if (t instanceof Error)
    _handleError((Error) t);
  throw t instanceof RuntimeException ? (RuntimeException) t : new RuntimeException(t);

static RuntimeException rethrow(S msg, Throwable t) {
  throw new RuntimeException(msg, t);

download  show line numbers  debug dex  old transpilations   

Travelled to 22 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lhdilzshxjzv, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, wtqryiryparv, xrpafgyirdlv

No comments. add comment

Snippet ID: #1007211
Snippet name: rethrow - rethrow an exception as RuntimeException
Eternal ID of this version: #1007211/7
Text MD5: 252bab383f17c60de713f7f213970630
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-25 16:21:32
Source code size: 326 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 657 / 1473
Version history: 6 change(s)
Referenced in: [show references]