How to properly handle typed errors? #1414
Unanswered
jamesleeht
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
-
Thanks for the great work on the library.
It seems like it is already intelligent enough to generate typed errors in the generated SDK code:
And we can get the library to throw errors as well through 2 ways:
Is the expected usage to do something like this and typecast the error ourselves?
Thanks! Just wanted to understand the proper way to handle errors since there is not much documentation about it even though the error types are generated.
Beta Was this translation helpful? Give feedback.
All reactions