io.ebean.config.dbplatform.SqlExceptionTranslator Maven / Gradle / Ivy
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