001package io.ebean.config.dbplatform; 002 003import javax.persistence.PersistenceException; 004import java.sql.SQLException; 005 006/** 007 * Used to translate SQLExceptions to specific persistence exceptions. 008 */ 009public interface SqlExceptionTranslator { 010 011 /** 012 * Translate the given exception. 013 */ 014 PersistenceException translate(String message, SQLException e); 015}