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

liquibase.precondition.FailedPrecondition Maven / Gradle / Ivy

There is a newer version: 3.6.2.5.inovus
Show newest version
package liquibase.precondition;

import liquibase.changelog.DatabaseChangeLog;

public class FailedPrecondition {
    private String message;
    private Precondition precondition;
    private DatabaseChangeLog changeLog;


    public FailedPrecondition(String message, DatabaseChangeLog changeLog, Precondition precondition) {
        this.message = message;
        this.changeLog = changeLog;
        this.precondition = precondition;
    }


    public String getMessage() {
        return message;
    }

    public Precondition getPrecondition() {
        return precondition;
    }


    @Override
    public String toString() {
        if (changeLog == null) {
            return message;
        } else {
            return changeLog.toString()+" : "+message;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy