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.
Add a runtime exception subclass named
UncheckedSQLException
which wraps a checkedSQLException
. It is rare that you can recover from aSQLException
, 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.