@FunctionalInterface public interface ThrowingRunnable
Runnable
that allows throwing checked exceptions. ThrowingRunnable
is usually implemented by a lambda and passed to CheckedExceptionHandler.runnable(ThrowingRunnable)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
void |
run()
Variation of Runnable.run() that allows throwing checked exceptions.
|
void run() throws Throwable
Runnable.run()
that allows throwing checked exceptions.
Throwable
- if unable to complete
CheckedExceptionHandler.runnable(ThrowingRunnable)
, Runnable.run()
Copyright © 2017–2020 Robert Važan. All rights reserved.