anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

How to elegantly make a service fail

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.

anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

How to elegantly make a service fail

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)

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to elegantly make a service fail

Hello!

You can try to make it with JavaScript - catch the 'where' response value and make some notification inside the app.

Return to “Issues”