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.
@FunctionalInterface public interface RunnableWithExceptionRunnable interface that allows exceptions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static java.lang.RunnableasRunnable(RunnableWithException unchecked)static java.lang.RunnableasRunnableIgnoreException(RunnableWithException unchecked)default java.lang.RunnableignoreException()default java.lang.RunnableorElseThrow()voidrun()
-
-
-
Method Detail
-
run
void run() throws java.lang.Exception
- Throws:
java.lang.Exception
-
orElseThrow
default java.lang.Runnable orElseThrow()
-
ignoreException
default java.lang.Runnable ignoreException()
-
asRunnable
static java.lang.Runnable asRunnable(RunnableWithException unchecked)
-
asRunnableIgnoreException
static java.lang.Runnable asRunnableIgnoreException(RunnableWithException unchecked)
-
-