liquibase.exception.Warnings Maven / Gradle / Ivy
package liquibase.exception;
import java.util.ArrayList;
import java.util.List;
public class Warnings {
private List messages = new ArrayList();
public void addWarning(String warning) {
messages.add(warning);
}
public void addAll(Warnings warnings) {
this.messages.addAll(warnings.getMessages());
}
public List getMessages() {
return messages;
}
public boolean hasWarnings() {
return messages.size() > 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy