org.holmes.exception.RuleViolationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of holmes-validation Show documentation
Show all versions of holmes-validation Show documentation
Holmes is a library that provides a simple and fluent API for writing business rules validations on Java projects.
The newest version!
package org.holmes.exception;
/**
* Class that represents a rule violation.
*
* @author diegossilveira
*/
public class RuleViolationException extends RuntimeException {
private static final long serialVersionUID = -6285497347762856549L;
public RuleViolationException(String violationDescriptor) {
super(violationDescriptor);
}
public String getViolationDescriptor() {
return getMessage();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy