jeudi 3 mars 2016

How can I catch error when can't create DB

I use cordovaSQLite plugin for cordova app. When I open a db like

db = $cordovaSQLite.openDB("MCApp/.db", 0);

The db can't be created, becouse of de slash, so it will throw a error.

My question now, how can I catch this error for logging? there is no catch funciton etc.

regards

Aucun commentaire:

Enregistrer un commentaire