Добавил Supplier для исключения FilterJooqHaitiException

This commit is contained in:
Struchkov Mark 2022-02-10 22:09:44 +03:00
parent 5b622514ad
commit 3c9ea08093

View File

@ -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));
};
}
}