forked from plusone/plusone-validator
Compare commits
2 Commits
0ea6867856
...
629a28ff62
Author | SHA1 | Date | |
---|---|---|---|
629a28ff62 | |||
791b3bb14c |
@@ -13,15 +13,15 @@ public class InvalidInputException extends BaseException {
|
||||
|
||||
public static final String ERROR_CODE = "4040200";
|
||||
|
||||
private InvalidInputException(String code, String msg) {
|
||||
protected InvalidInputException(String code, String msg) {
|
||||
super(code, msg);
|
||||
}
|
||||
|
||||
private InvalidInputException(String code, Throwable cause) {
|
||||
protected InvalidInputException(String code, Throwable cause) {
|
||||
super(code, cause);
|
||||
}
|
||||
|
||||
private InvalidInputException(String code, String msg, Throwable cause) {
|
||||
protected InvalidInputException(String code, String msg, Throwable cause) {
|
||||
super(code, msg, cause);
|
||||
}
|
||||
|
||||
|
@@ -47,7 +47,7 @@ public final class Validator<T> extends BaseValidator<T> {
|
||||
withRule(rule, exceptionCreator);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public final <E extends RuntimeException> Validator<T> addRule(Predicate<T> rule, Function<T, E> exceptionCreator) {
|
||||
withRule(rule, exceptionCreator);
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user