You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
350 B
Plaintext
9 lines
350 B
Plaintext
benefits of eTry
|
|
- exhaustive error matching
|
|
- you can wrap calls in it, as it's an expression, not a statement like try/catch
|
|
|
|
note that it does not work with async/await, where you're stuck with the manual approach
|
|
|
|
TODO:
|
|
- Add a (maybe)fromGraphQL utility for converting GraphQL's wrapper errors (with `originalError`) into a standard error chain
|