A method I am calling in run() in a class that implements Runnable) is designed to be throwing an exception.
But the Java compiler won\'t let me do that and suggests
@FunctionalInterface public interface CheckedRunnable extends Runnable { @Override default void run() throws RuntimeException { try { runThrows(); } catch (Exception ex) { throw new RuntimeException(ex); } } void runThrows() throws E; }