Skip to content

Commit

Permalink
fix(engine): generify spring persistence exception (#3939)
Browse files Browse the repository at this point in the history
related to #3749
  • Loading branch information
tasso94 authored Dec 7, 2023
1 parent a700f45 commit e925dce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.camunda.bpm.engine.impl.db.sql.DbSqlSession;
import org.camunda.bpm.engine.impl.interceptor.Command;
import org.camunda.bpm.engine.impl.interceptor.CommandInterceptor;
import org.camunda.bpm.engine.impl.util.ExceptionUtil;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.TransactionSystemException;
Expand Down Expand Up @@ -79,7 +80,7 @@ public <T> T execute(final Command<T> command) {
throw ProcessEngineLogger.PERSISTENCE_LOGGER.crdbTransactionRetryExceptionOnCommit(cause);

} else {
throw ex;
throw ExceptionUtil.wrapPersistenceException(ex);

}
}
Expand Down

0 comments on commit e925dce

Please sign in to comment.