java.lang.Object
io.ebean.config.dbplatform.SqlCodeTranslator
- All Implemented Interfaces:
SqlExceptionTranslator
Translate SQLException based on SQLState codes.
-
Constructor Summary
ConstructorDescriptionCreate "No-op" implementation.Create given the map of SQLState codes to error types. -
Method Summary
Modifier and TypeMethodDescriptionjavax.persistence.PersistenceException
translate
(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:SqlExceptionTranslator
Translate the given exception.- Specified by:
translate
in interfaceSqlExceptionTranslator
-