org.molgenis.data.transaction.TransactionExceptionTranslator Maven / Gradle / Ivy
package org.molgenis.data.transaction;
import org.springframework.dao.DataAccessException;
import org.springframework.transaction.TransactionException;
/** Spring transaction exception translator */
public interface TransactionExceptionTranslator {
/**
* Translates a Spring transaction exception to a MOLGENIS transaction exception
*
* @param transactionException Spring transaction exception
* @return translated transaction exception or null
if transaction could not be
* translated
*/
DataAccessException doTranslate(TransactionException transactionException);
}