Skip to content

switch to vuestic toast global object.

ryanlong requested to merge axios_error_handler into main

Created by: deepakduggirala

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 (closed), #68 (closed)

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.

  • Feature added
  • Bug fixed
  • Code refactored
  • Documentation updated
  • Other changes: [describe]

Checklist

Before submitting this PR, please make sure that:

  • Your code passes linting and coding style checks.
  • Documentation has been updated to reflect the changes.
  • You have reviewed your own code and resolved any merge conflicts.
  • You have requested a review from at least one team member.
  • Any relevant issue(s) have been linked to this PR.

Merge request reports

Loading