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

A way to construct errors #2208

Closed
jsimpson-gro opened this issue Jan 13, 2023 · 3 comments
Closed

A way to construct errors #2208

jsimpson-gro opened this issue Jan 13, 2023 · 3 comments

Comments

@jsimpson-gro
Copy link

jsimpson-gro commented Jan 13, 2023

As I read the docs, it is unclear how I can construct an instance of these struct, which makes unit testing my error handling code unnecessarily difficult.

@Velfi
Copy link
Contributor

Velfi commented Jan 17, 2023

@jsimpson-gro Could you share a unit test where you'd like to create an error? I'd like to help you and starting with an example makes it easier. You can "create" the error in your example with pseudo-code and then I'll reply with an edited version.

@jsimpson-gro
Copy link
Author

testing-s3-connections.tar.gz

Please don't focus too much on the details. It's just a toy example taken out of context.

@ysaito1001
Copy link
Contributor

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

No branches or pull requests

3 participants