@FunctionalInterface public interface SQLExceptionAdapter
SQLException
to an unchecked exception.
Very similar to SQLExceptionTranslator
.
Modifier and Type | Method | Description |
---|---|---|
RuntimeException |
translate(String procedureName,
String sql,
SQLException exception) |
Translates a checked
SQLException to an unchecked exception. |
RuntimeException translate(String procedureName, String sql, SQLException exception)
SQLException
to an unchecked exception.
Does not throw the exception, only creates an instanceprocedureName
- the SQL procedure name derived by this librarysql
- the JDBC call string generated by this libraryexception
- the exception to translate, should be passed as cause to
the new exception instance returned by this methodCopyright © 2016–2018. All rights reserved.