thevinchi / firebase-titanium

Titanium Native iOS Module for Firebase
MIT License
22 stars 11 forks source link

Error Handling #1

Open thevinchi opened 9 years ago

thevinchi commented 9 years ago

I need to refactor the treatment of error handling across the Kroll bridge. This mostly refers to syntactic errors, where the developer has passed invalid arguments, etc. Currently the Obj-C library is doing empty return; statements with most methods returning void vs. allowing for a return across the Kroll bridge that could indicate a syntactic error, etc.

Also need to look at the JavaScript side to throw new Error() versus return false; in a number of areas.