Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package com.github.fge.grappa.debugger.common;
import com.github.fge.lambdas.ThrownByLambdaException;
public interface ThrowingRunnable
extends Runnable
void doRun()
throws Throwable;
default void run()
try {
} catch (Error | RuntimeException e) {
throw e;
} catch (Throwable tooBad) {
throw new ThrownByLambdaException(tooBad);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment