spring-framework / org.springframework.jdbc.support / CustomSQLExceptionTranslatorRegistrar / setTranslators

setTranslators

open fun setTranslators(translators: MutableMap<String, SQLExceptionTranslator>): Unit

Setter for a Map of SQLExceptionTranslator references where the key must be the database name as defined in the sql-error-codes.xml file.

Note that any existing translators will remain unless there is a match in the database name, at which point the new translator will replace the existing one.