How to best handle an error from _Error namespace without own type? #3786
Unanswered
robert-hanuschke
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I encountered a "SlowDown" error today using lib-storage's Upload.
{ "errorType": "SlowDown", "errorMessage": "Please reduce your request rate.", "name": "SlowDown", "$fault": "client", ...
Trying to handle it granularly in a catch stopped me at not finding a definition for it in either lib-storage or client-s3 that I could instanceof check against.
How do I best handle such a situation for this and possibly other errors in the _Error namespace that do not have an own definition (yet)?
Beta Was this translation helpful? Give feedback.
All reactions