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

11
LINES

< > 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);
  endifndef
  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   

Travelled to 12 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lhdilzshxjzv, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, tslmcundralx, tvejysmllsmz, wtqryiryparv

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: 366 / 876
Version history: 6 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1007211 & http://1007211.tinybrain.de