Добавил Supplier для исключения FilterJooqHaitiException
This commit is contained in:
parent
5b622514ad
commit
3c9ea08093
@ -2,10 +2,19 @@ package dev.struchkov.haiti.filter.jooq.exception;
|
||||
|
||||
import dev.struchkov.haiti.filter.exception.FilterException;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public class FilterJooqHaitiException extends FilterException {
|
||||
|
||||
public FilterJooqHaitiException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public static Supplier<FilterJooqHaitiException> filterJooqException(String message, Object... objects) {
|
||||
return () -> {
|
||||
return new FilterJooqHaitiException(MessageFormat.format(message, objects));
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user