-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup exception handling in ApplicationErrorJdbc (#401)
* Catch SQLException in ApplicationErrorJdbc#createInMemoryH2Database instead of Exception to prevent wrapping ApplicationErrorJdbcException inside another ApplicationErrorJdbcException thrown by the call to migrateDatabase. Instead, wrap SQLException thrown by the call to getInMemoryH2Connection with UncheckedSQLException. * Add catch clause in ApplicationErrorJdbc#migrateDatabase to catch SQLException and rethrow wrapped in UncheckedSQLException. This leaves only the (checked) Liquibase exceptions to be caught and wrapped in ApplicationErrorJdbcException.
- Loading branch information
1 parent
84ea5f1
commit fbfb945
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters