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

8
LINES

< > BotCompany Repo | #1034252 // jSmallErrorView

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (13165L) is out of date.

static JComponent jSmallErrorView(Throwable e) {
  var btn = jimageButtonScaledToWidth(32, errorIconID(), "Show error details",
    -> showErrorFrame(e));
  //S text = exceptionType(e);
  S text = exceptionToStringShort(e);
  var label = jlabel_noAutoToolTip(text);
  ret jline(btn, label);
}

Author comment

Began life as a copy of #1034123

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034252
Snippet name: jSmallErrorView
Eternal ID of this version: #1034252/10
Text MD5: 24c8f85245aa80ade046dda71f60b00a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-17 19:41:33
Source code size: 299 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 174 / 281
Version history: 9 change(s)
Referenced in: [show references]