com.github.thiagogarbazza.domainvalidation.ViolationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domain-validation Show documentation
Show all versions of domain-validation Show documentation
A simple framework to write domain validation.
package com.github.thiagogarbazza.domainvalidation;
import java.util.Collection;
import java.util.Map;
import com.github.thiagogarbazza.domainvalidation.util.PropertieUtil;
import lombok.Getter;
public class ViolationException extends RuntimeException {
@Getter
private final Map> violations;
protected ViolationException(final Map> violations) {
super(PropertieUtil.getValue("exception.message"));
this.violations = violations;
}
}