tomekkup / helenos

Helenos is a free web based environment that simplifies a data exploring & schema managament with Apache Cassandra database.
160 stars 43 forks source link

RPC error handler #1

Closed tomekkup closed 12 years ago

tomekkup commented 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); }

tomekkup commented 12 years ago

implemented