Module io.ebean.api

Class SqlCodeTranslator

java.lang.Object
io.ebean.config.dbplatform.SqlCodeTranslator
All Implemented Interfaces:
SqlExceptionTranslator

public class SqlCodeTranslator extends Object implements SqlExceptionTranslator
Translate SQLException based on SQLState codes.
  • Constructor Details

    • SqlCodeTranslator

      public SqlCodeTranslator(Map<String,DataErrorType> map)
      Create given the map of SQLState codes to error types.
    • SqlCodeTranslator

      public SqlCodeTranslator()
      Create "No-op" implementation.
  • Method Details