@FunctionalInterface interface SQLExceptionTranslator
Strategy interface for translating between SQLException and Spring's data access strategy-agnostic DataAccessException hierarchy.
Implementations can be generic (for example, using SQLState
codes for JDBC) or wholly proprietary (for example, using Oracle error codes) for greater precision.
Author
Rod Johnson
Author
Juergen Hoeller
See Also
org.springframework.dao.DataAccessException
abstract fun translate(task: String, sql: String, ex: SQLException): DataAccessException
Translate the given SQLException into a generic DataAccessException. The returned DataAccessException is supposed to contain the original |