kiwiproject / kiwi

A set of Java utilities that we could not find in Guava or Apache Commons...or we just felt like having our own version.
MIT License
12 stars 1 forks source link

Add UncheckedSQLException #1168

Closed sleberknight closed 3 months ago

sleberknight commented 4 months ago

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.