ThrowingRunnable

Similar to a Runnable , except that it can also throw a checked Exception .

API

ThrowingRunnable.java
interface ThrowingRunnable {
  void run()
  void runUncatched()     (1)
  Void callUncatched()     (2)
  Runnable toRunnable()     (3)
  Callable<Void> toCallable()     (4)
}
1 runUncatched()

Does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the wrapped #run() method.

2 callUncatched()

Does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the wrapped #run() method.

3 toRunnable()

The resulting Runnable does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the wrapped #run() method.

4 toCallable()

The resulting Callable does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the wrapped #run() method.

Members

runUncatched()

Does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the wrapped #run() method.

callUncatched()

Does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the wrapped #run() method.

toRunnable()

The resulting Runnable does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the wrapped #run() method.

toCallable()

The resulting Callable does not silently swallow, wrap into RuntimeException, or otherwise modify any exceptions of the wrapped #run() method.