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

3
LINES

< > BotCompany Repo | #1023248 // failOrWarn - fail if first parameter is true

JavaX fragment (include)

1  
svoid failOrWarn(bool fail, S msg) {
2  
  if (fail) fail(msg); else warn(msg);
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023248
Snippet name: failOrWarn - fail if first parameter is true
Eternal ID of this version: #1023248/1
Text MD5: d557265cea3f0c95d1d65ccd6671fdd5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-19 10:53:13
Source code size: 79 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 230 / 276
Referenced in: [show references]