Module com.machinezoo.noexception
Interface ThrowingRunnable
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingRunnable
Variation ofRunnable
that allows throwing checked exceptions.ThrowingRunnable
is usually implemented by a lambda and passed toCheckedExceptionHandler.runnable(ThrowingRunnable)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run()
Variation ofRunnable.run()
that allows throwing checked exceptions.
-
-
-
Method Detail
-
run
void run() throws Throwable
Variation ofRunnable.run()
that allows throwing checked exceptions.- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.runnable(ThrowingRunnable)
,Runnable.run()
-
-