liquibase.exception.Warnings 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.exception;
import java.util.ArrayList;
import java.util.List;
public class Warnings {
private List messages = new ArrayList<>();
public Warnings addWarning(String warning) {
messages.add(warning);
return this;
}
public Warnings addAll(Warnings warnings) {
if (warnings != null) {
this.messages.addAll(warnings.getMessages());
}
return this;
}
public List getMessages() {
return messages;
}
public boolean hasWarnings() {
return !messages.isEmpty();
}
}