I want to catch exceptions in javascript if an insertion query is not done.
I have written the code below:
var adoConn = new ActiveXObject(\"ADODB.Co
try { adoConn.Execute("insert into session (SessionId,Timestamp) values ('" + SessionId + "','" + SessionCurrenttime + "')"); } catch(e) { /*use error object to inspect the error: e.g. return e.message */ }