java.lang.Object
io.ebean.config.dbplatform.SqlCodeTranslator
- All Implemented Interfaces:
SqlExceptionTranslator
Translate SQLException based on SQLState codes.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate "No-op" implementation.Create given the map of SQLState codes to error types. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.PersistenceExceptiontranslate(String message, SQLException e) Translate the given exception.
-
Constructor Details
-
SqlCodeTranslator
Create given the map of SQLState codes to error types. -
SqlCodeTranslator
public SqlCodeTranslator()Create "No-op" implementation.
-
-
Method Details
-
translate
Description copied from interface:SqlExceptionTranslatorTranslate the given exception.- Specified by:
translatein interfaceSqlExceptionTranslator
-