-
Notifications
You must be signed in to change notification settings - Fork 597
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 some error type convenience functions for mocking and inspection #1047
Add some error type convenience functions for mocking and inspection #1047
Conversation
Provide the ability to create the `RequestError`, etc types in other packages with the underlying Error type. Useful in our code for mocking these error types. Add the `InternalErrorCodeIs` to these errors as well to simplify checking the internal codes when working with these types.
changelog detected ✅ |
once you add a CHANGELOG, i'm 👍 to this one. |
Codecov Report
@@ Coverage Diff @@
## master #1047 +/- ##
==========================================
+ Coverage 49.06% 50.01% +0.95%
==========================================
Files 108 115 +7
Lines 10428 11040 +612
==========================================
+ Hits 5116 5522 +406
- Misses 4200 4347 +147
- Partials 1112 1171 +59
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
added |
This functionality has been released in v0.48.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
Provide the ability to create the
RequestError
, etc types in other packages with the underlyingError type. Useful in our code for mocking these error types.
Add the
InternalErrorCodeIs
to these errors as well to simplify checking the internal codes whenworking with these types.
Types of changes
What sort of change does your code introduce/modify?
Checklist: