Package org.osgi.test.common.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 RunnableasRunnable(RunnableWithException unchecked) static RunnableasRunnableIgnoreException(RunnableWithException unchecked) default Runnabledefault Runnablevoidrun()
-
Method Details
-
run
- Throws:
Exception
-
orElseThrow
-
ignoreException
-
asRunnable
-
asRunnableIgnoreException
-