I use “isc.RPCManager.sendQueue() “ method as follows. When server returns exception, i want to handle exception. But i can't. How can i handle error?
(when i don't use RPCManager, i handle eror with restdatasource)
(when i don't use RPCManager, i handle eror with restdatasource)
Code:
function saveFunction(){
/*adding, updating and removind data to the rest datasource*/
};
isc.RPCManager.addClassProperties({
handleError : function (response, request) {
alert("error"); // server throw exception but can't handle
}
});
isc.RPCManager.startQueue();
saveFunction();
isc.RPCManager.sendQueue(function(){
alert("Done");
});
Comment