package com.atlassian.stash.internal.backup.liquibase;

import liquibase.change.Change;
import org.springframework.dao.InvalidDataAccessResourceUsageException;

/**
 * Parent class of exceptions indicating that the execution of a Liquibase change operation
 * (e.g. insert data change) failed.
 */
public class LiquibaseChangeExecutionException extends InvalidDataAccessResourceUsageException {
    public LiquibaseChangeExecutionException(Change change, Throwable cause) {
        super("Failed to execute change: " + change.getChangeMetaData().getDescription(), cause);
    }
}
