diff --git a/src/main/java/dev/struchkov/haiti/filter/jooq/exception/FilterJooqHaitiException.java b/src/main/java/dev/struchkov/haiti/filter/jooq/exception/FilterJooqHaitiException.java index 049e617..8746108 100644 --- a/src/main/java/dev/struchkov/haiti/filter/jooq/exception/FilterJooqHaitiException.java +++ b/src/main/java/dev/struchkov/haiti/filter/jooq/exception/FilterJooqHaitiException.java @@ -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 filterJooqException(String message, Object... objects) { - return () -> { - return new FilterJooqHaitiException(MessageFormat.format(message, objects)); - }; + return () -> new FilterJooqHaitiException(MessageFormat.format(message, objects)); } }