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

This commit is contained in:
Struchkov Mark 2022-02-10 22:27:03 +03:00
parent 3c9ea08093
commit 140d3aad3e

View File

@ -1,20 +1,18 @@
package dev.struchkov.haiti.filter.jooq.exception;
import dev.struchkov.haiti.filter.exception.FilterException;
import dev.struchkov.haiti.context.exception.BasicException;
import java.text.MessageFormat;
import java.util.function.Supplier;
public class FilterJooqHaitiException extends FilterException {
public class FilterJooqHaitiException extends BasicException {
public FilterJooqHaitiException(String message) {
super(message);
}
public static Supplier<FilterJooqHaitiException> filterJooqException(String message, Object... objects) {
return () -> {
return new FilterJooqHaitiException(MessageFormat.format(message, objects));
};
return () -> new FilterJooqHaitiException(MessageFormat.format(message, objects));
}
}