Package aQute.lib.exceptions
Interface RunnableWithException
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Runnable interface that allows exceptions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Runnable
asRunnable
(RunnableWithException unchecked) static Runnable
asRunnableIgnoreException
(RunnableWithException unchecked) default Runnable
default Runnable
void
run()
-
Method Details
-
run
- Throws:
Exception
-
orElseThrow
-
ignoreException
-
asRunnable
-
asRunnableIgnoreException
-