[x] New feature (non-breaking change which adds functionality)
Describe your changes
Need to refactor how initialize() is used so that is bubbles errors instead of just logging them. This way we can use the actual error reasons for notify or when user invokes API to show reasons for component not being able to recover. Needs work:
[ ] Throw error from init and refactor all usage to try-catch OR introduce initAndLog as convenience method
[ ] Refactor api usage to enable force init when things aren't working as planned and user wants to force a full recovery
[ ] Refactor notify usage to pull error causes and consolidate where these happen
[ ] Refactor remaining uses of testAuth to try-catch
[ ] Maybe introduce child Error classes for init steps to make extracting the desired error cause easier?
[ ] Implement or refactor poll endpoints so allow re-initializing non-polling components as well
Checklist before requesting a review
Type of change
Please delete options that are not relevant.
Describe your changes
Need to refactor how
initialize()
is used so that is bubbles errors instead of just logging them. This way we can use the actual error reasons fornotify
or when user invokes API to show reasons for component not being able to recover. Needs work:initAndLog
as convenience methodforce
init when things aren't working as planned and user wants to force a full recoverynotify
usage to pull error causes and consolidate where these happentestAuth
to try-catchError
classes for init steps to make extracting the desired errorcause
easier?poll
endpoints so allow re-initializing non-polling components as wellIssue number and link, if applicable
220