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

20
LINES

< > BotCompany Repo | #1004975 - class PersistableThrowable

JavaX fragment (include)

static class PersistableThrowable extends DynamicObject {
  S className;
  S msg;
  S stacktrace;
  
  *() {}
  *(Throwable e) {
    if (e == null)
      className = "Crazy Null Error";
    else {
      className = getClassName(e).replace('/', '.');
      msg = e.getMessage();
      stacktrace = getStackTrace_noRecord(e);
    }
  }
  
  public S toString() {
    ret nempty(msg) ? className + ": " + msg : className;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1004975
Snippet name: class PersistableThrowable
Eternal ID of this version: #1004975/3
Text MD5: cbcb9ac167609877224a41f74b1d5f55
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-22 10:18:52
Source code size: 443 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 428 / 1338
Version history: 2 change(s)
Referenced in: [show references]