@Public @FunctionalInterface public interface RunnableWithException extends ThrowingRunnable<Exception>
Runnable, this interface is used to capture a block of code to be executed. In contrast to
Runnable, this interface allows throwing checked exceptions.
|Modifier and Type||Method and Description|
The work method.
void run() throws Exception
Exception- Exceptions may be thrown.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.