liquibase.precondition.FailedPrecondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.precondition;
import liquibase.changelog.DatabaseChangeLog;
public class FailedPrecondition {
private final String message;
private final Precondition precondition;
private final 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 +" : "+message;
}
}
}