Goal: clarify how errors should be handled on the client side and provide some generic/reusable error handling mechanisms (routing errors, unhandled exceptions, ...).
Provide some documentation about generic error handling.
Cases to consider:
1) interactions with the back-end and errors:
timeouts
4xx error codes & how to map error(s) with the UI?
5xx error codes
2) best practices for defensive programming on the front-end
try/catch
logging
?
3) describe reusable coding patterns
4) how to visualize errors: useful information on the UI for users and useful detailed information in debug logs
For the dev guide:
error handling utilities provided by Stark
code design for handling errors: try-catch, promises & observables, retry & bail-out, how to handle errors returned by the back-end, ...
how to display errors (notifications, message pane, ...)
Goal: clarify how errors should be handled on the client side and provide some generic/reusable error handling mechanisms (routing errors, unhandled exceptions, ...).
Provide some documentation about generic error handling.
Cases to consider:
1) interactions with the back-end and errors:
2) best practices for defensive programming on the front-end
For the dev guide:
Tasks: