wrapSqlException

internal inline fun <T> wrapSqlException(block: () -> T): T

Runs block, restating any of the driver's exceptions it raises in a SQLExceptionWrapper - how every method the JDBC surface implements fails, where what it does not implement throws the driver's exception as it is.