Hi,
I tried to implement my own error handling like the code below, but it never enter that catch block. Is there any ways to achieve that?
I tried to implement my own error handling like the code below, but it never enter that catch block. Is there any ways to achieve that?
Code:
try { isc.RPCManager.sendRequest({ httpMethod: "GET", actionURL: "./GetData", willHandleError: true, callback: function (response, data, request) { if (response.status < 0) { throw "Record not found"; } else { // success script } }, }); } catch (e) { // handle thrown error here isc.warn(e); }
Comment