spring-framework / org.springframework.jdbc.support / JdbcAccessor / setExceptionTranslator

setExceptionTranslator

open fun setExceptionTranslator(exceptionTranslator: SQLExceptionTranslator): Unit

Set the exception translator for this instance.

If no custom translator is provided, a default SQLErrorCodeSQLExceptionTranslator is used which examines the SQLException's vendor-specific error code.

See Also
org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslatororg.springframework.jdbc.support.SQLStateSQLExceptionTranslator