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

21
LINES

< > BotCompany Repo | #1006641 // pcallAnswerMethod - return "ERROR: ..." on exception

JavaX fragment (include)

static S pcallAnswerMethod(S s) {
  try {
    ret callAnswerMethod(s);
  } catch e {
    printStackTrace(e);
    ret "ERROR: " + e;
  }
}

static S pcallAnswerMethod(O responder, S s) {
  ret pcallAnswerMethod(responder, s, litlist(s));
}

static S pcallAnswerMethod(O responder, S s, L<S> history) {
  try {
    ret callAnswerMethod(responder, s, history);
  } catch e {
    printStackTrace(e);
    ret "ERROR: " + e;
  }
}

Author comment

Began life as a copy of #1002618

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006641
Snippet name: pcallAnswerMethod - return "ERROR: ..." on exception
Eternal ID of this version: #1006641/5
Text MD5: 6ba500519a16f29f3d9dcd6ff52dc540
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-24 00:25:54
Source code size: 444 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 402 / 435
Version history: 4 change(s)
Referenced in: [show references]