Skip to content
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

Add ability to add error handling middleware #257

Open
jakeleventhal opened this issue Dec 4, 2023 · 1 comment
Open

Add ability to add error handling middleware #257

jakeleventhal opened this issue Dec 4, 2023 · 1 comment

Comments

@jakeleventhal
Copy link
Contributor

I want to be able to pass in a custom error handler that allows me to handle errors (create logs, send info to Sentry, etc.)

@Roman991
Copy link
Contributor

I dont remember if I already send the PR to export the CustomError class, which catches errors in amazon-sp-api, btw u can do it by yourself.
export the CustomError and then check

if(YourError instanceof CustomError){
  ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants