Closed tomekkup closed 12 years ago
Currently exceptions occured while calling remote methods are not handled. Sample code:
var showDetails = function(details) { alert( "origin: " + details.origin + "; code: " + details.code + "; message: " + details.message ); };
// error handling for sync calls try { var result = rpc.callSync("echo", "Test"); } catch (exc) { showDetails(exc.rpcdetails); }
implemented
Currently exceptions occured while calling remote methods are not handled. Sample code:
var showDetails = function(details) { alert( "origin: " + details.origin + "; code: " + details.code + "; message: " + details.message ); };
// error handling for sync calls try { var result = rpc.callSync("echo", "Test"); } catch (exc) { showDetails(exc.rpcdetails); }