All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.config.dbplatform.SqlExceptionTranslator Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebean.config.dbplatform;

import javax.persistence.PersistenceException;
import java.sql.SQLException;

/**
 * Used to translate SQLExceptions to specific persistence exceptions.
 */
public interface SqlExceptionTranslator {

  /**
   * Translate the given exception.
   */
  PersistenceException translate(String message, SQLException e);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy