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

Add UncheckedSQLException #1168

Closed
sleberknight opened this issue Jul 24, 2024 · 0 comments · Fixed by #1174
Closed

Add UncheckedSQLException #1168

sleberknight opened this issue Jul 24, 2024 · 0 comments · Fixed by #1174
Assignees
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Milestone

Comments

@sleberknight
Copy link
Member

sleberknight commented Jul 24, 2024

Add a runtime exception subclass named UncheckedSQLException which wraps a checked SQLException. It is rare that you can recover from a SQLException, so this lets applications easily throw a runtime exception instead. I'm sure that some other library already has one, but we're adding it here anyway b/c it is super simple and avoids another dependency.

This originates from this Discussion in kiwi-test: Consider "moving" RuntimeSQLException to kiwi.

Once released in kiwi, it should replace similar classes in kiwi-test and dropwizard-application-errors as described in the discussion.

@sleberknight sleberknight added the new feature A new feature such as a new class, method, package, group of classes, etc. label Jul 24, 2024
@sleberknight sleberknight added this to the 4.2.0 milestone Jul 26, 2024
@sleberknight sleberknight self-assigned this Jul 30, 2024
sleberknight added a commit that referenced this issue Jul 30, 2024
* Copied RuntimeSQLException from kiwi-test and
  renamed it to UncheckedSQLException

Closes #1168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature such as a new class, method, package, group of classes, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant