How to elegantly make a service fail
Posted: Fri Apr 18, 2014 11:48 pm
by anon
I am trying to make a service (query) fail if the where clause is undefined or some other fail case. What is the best way to make a service fail? I want to avoid error 404 or 5xx get requests from populating the console.
How to elegantly make a service fail
Posted: Sat Apr 19, 2014 12:21 am
by anon
like... in the where clause; what can I return to make the service fail, so that I can run an event after this service fails...? elegantly (silently)
How to elegantly make a service fail
Posted: Sat Apr 19, 2014 8:22 am
by Illya Stepanov
Hello!
You can try to make it with JavaScript - catch the 'where' response value and make some notification inside the app.