com.github.thiagogarbazza.domainvalidation.Violation 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 lombok.Getter;
@Getter
public final class Violation {
private final String code;
private final String message;
public Violation(final String code, final String message) {
this.code = code;
this.message = message;
}
public Violation(final String code, final String message, final Object[] arguments) {
this.code = code;
this.message = String.format(message, arguments);
}
}