public interface

ThrowingRunnable

org.ocast.core.function.ThrowingRunnable<E extends java.lang.Throwable>

Summary

Public Methods
abstract static Runnable checked(ThrowingRunnable<Exception> runnable, Consumer<Throwable> thrown)
abstract void run()

Public Methods

public static abstract Runnable checked (ThrowingRunnable<Exception> runnable, Consumer<Throwable> thrown)

Returns
  • a new Runnable instance which wraps the runnable to call the Consumer when an exception occurs

public abstract void run ()

Throws
Throwable