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

Effectively leverage typed errors by defining precise sealed hierarchy of errors #74

Open
jdegoes opened this issue Nov 1, 2022 · 5 comments

Comments

@jdegoes
Copy link
Member

jdegoes commented Nov 1, 2022

Ideally, we would have a sealed trait that defines every possible error that can result from JDBC, each as a case class that stores relevant context, including any underlying Throwable. The sealed trait should be engineered to group related exceptions into a finite number of logical categories. We need confidence that we have done enough research to perform this grouping and that it is necessary and sufficient for all JDBC methods. Finally, we need to update all query methods to return the more precise error type, using refineToOrDie, etc.

@jdegoes
Copy link
Member Author

jdegoes commented May 5, 2023

/bounty $100

@algora-pbc
Copy link

algora-pbc bot commented May 5, 2023

💎 $100 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #74 with your implementation plan
  2. Submit work: Create a pull request including /claim #74 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to zio/zio-jdbc!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟡 @pablf May 24, 2023, 11:12:03 AM #142

@pablf
Copy link
Member

pablf commented May 24, 2023

/attempt #74

@algora-pbc
Copy link

algora-pbc bot commented May 27, 2023

💡 @pablf submitted a pull request that claims the bounty. You can visit your org dashboard to reward.

@algora-pbc
Copy link

algora-pbc bot commented Jun 14, 2023

💡 @pablf submitted a pull request that claims the bounty. You can visit your org dashboard to reward.

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

2 participants