-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define error handling strategy #33
Comments
Not only our API can throw an error, but also other components. This is why the component |
I see 3 categories of errors, which should be handled and logged differently:
A plan for the strategy of handling all errors: Development-tasks I see to fulfill the plan above:
Next Steps: |
I'd like to use ApplicationInsights for logging since we use that in the other projects as well. It probably makes sense that I set this up. Do you have some examples for User relevant errors? Do you mean searching for something that doesn't exist and show a message that there are no results? |
In general everything the user has access to change something - any kind of input. Search shouldn't have user-related errors (e.g. an empty search result is not an error), but when creating a playlist where one with the same name already exists is something we might not want to allow ... Another example is when opening a link which cannot be resolved by the router. The above is just a very general statement from my side. You could categorize them as explicit non-fatal errors on the 4-axis, but I still see them in a different responsibility - of the user. |
Should this be discussed at the upcoming frivillighetshelg? Would be nice to get something working (ref #270). |
@sifferhans yes. that's a good idea. |
I planned to, but i was needed in the orchestra under the easter camp, and we're using the frivillighetshelg for practice 😅 |
Currently we disregard all errors coming from a request to the API. An ideal outcome of this ticket would be a definition of how basic errors (e.g. server couldn't be reached/network down) could be handled - some kind of universal solution, which then would be implemented in all existing cases of failure and should be followed by all subsequent PRs.
The text was updated successfully, but these errors were encountered: