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

org.molgenis.data.transaction.TransactionExceptionTranslator Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy