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

6
LINES

< > BotCompany Repo | #1035392 // assertInnerExceptionOfTypeVerbose

JavaX fragment (include)

static void nuLike assertInnerExceptionOfTypeVerbose(Class type, Runnable r) {
  var e = assertFail(r);
  if (!containsExceptionOfType(e, type))
    fail("Exception " + e + " isn't of type " + type);
  print("OK: " + e);
}

Author comment

Began life as a copy of #1035391

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035392
Snippet name: assertInnerExceptionOfTypeVerbose
Eternal ID of this version: #1035392/1
Text MD5: 1cfb213112fce984108ef14759094962
Author: stefan
Category: javac
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-05 16:46:10
Source code size: 227 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 64 / 79
Referenced in: [show references]