jodd-lagarto/src/main/java/jodd/lagarto/dom/Document.java
public void addError(final String message) {
		if (config.collectErrors) {
			if (errors == null) {
				errors = new ArrayList<>();
			}
			errors.add(message);
		}
	}
public void addError(final String message) {
		if (config.collectErrors) {
			if (errors == null) {
				errors = new ArrayList<>();
			}
			errors.add(message);
		}
	}
Add new error message to the {@link #getErrors() errors list}.
If errors are not collected error, message is ignored.