package li.strolch.utils; import java.util.function.Supplier; @FunctionalInterface public interface ThrowingSupplier extends Supplier { @Override default T get() { try { return getThrows(); } catch (final Exception e) { throw new RuntimeException(e); } } T getThrows() throws Exception; }