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

import liquibase.database.Database;
import org.springframework.dao.UncategorizedDataAccessException;

/**
 * Parent class of exceptions that don't distinguish anything more specific than something went wrong
 * with the Liquibase system.
 */
public class LiquibaseDataAccessException extends UncategorizedDataAccessException {
    public LiquibaseDataAccessException(String msg, Database database, Throwable cause) {
        this(msg + ". Database type: " + database.getTypeName(), cause);
    }

    public LiquibaseDataAccessException(String msg, Throwable cause) {
        super(msg, cause);
    }
}
