net.jbock.common.ValidationFailure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jbock-compiler Show documentation
Show all versions of jbock-compiler Show documentation
jbock annotation processor
package net.jbock.common;
import javax.lang.model.element.Element;
public class ValidationFailure {
private final Element about;
private final String message;
public ValidationFailure(String message, Element about) {
this.message = message;
this.about = about;
}
public ValidationFailure prepend(String prefix) {
return new ValidationFailure(prefix + message, about);
}
public Element about() {
return about;
}
public String message() {
return message;
}
}