Add axios global error handler for unhandled promise rejections
Description
switch back to using toast from Vuestic instead of the makeshift Pinia store.
If Axios exceptions occur, unhandled promise rejections are captured and logged. This allows developers to bypass the need for generic API error handling, enabling the code to present generic messages while still being able to capture exceptions in their code and display custom error messages.
Related Issue(s)
Closes #18, #68
If applicable, please reference the issue(s) that this PR addresses. If the PR does not address any specific issue, you can remove this section.
Changes Made
List the main changes made in this PR. Be as specific as possible.
[x] Feature added
[ ] Bug fixed
[x] Code refactored
[x] Documentation updated
[ ] Other changes: [describe]
Checklist
Before submitting this PR, please make sure that:
[x] Your code passes linting and coding style checks.
[x] Documentation has been updated to reflect the changes.
[x] You have reviewed your own code and resolved any merge conflicts.
[ ] You have requested a review from at least one team member.
[x] Any relevant issue(s) have been linked to this PR.
Add axios global error handler for unhandled promise rejections
Description
Related Issue(s)
Closes #18, #68
If applicable, please reference the issue(s) that this PR addresses. If the PR does not address any specific issue, you can remove this section.
Changes Made
List the main changes made in this PR. Be as specific as possible.
Checklist
Before submitting this PR, please make sure that: