Package org.eclipse.ease.tools
Class RunnableWithResult<T>
java.lang.Object
org.eclipse.ease.tools.RunnableWithResult<T>
- All Implemented Interfaces:
Runnable
-
Constructor Details
-
RunnableWithResult
public RunnableWithResult()
-
-
Method Details
-
run
public final void run() -
getResult
Get the result of the run execution. In case an exception was thrown it gets rethrown encapsulated in aRuntimeException
.- Returns:
- runnable result
- Throws:
RuntimeException
- encapsulated exception encountered during run
-
getResultOrThrow
Get the result of the run execution. Does rethrow exceptions that occurred during the run.- Returns:
- runnable result
- Throws:
RuntimeException
- encapsulated exception encountered during runThrowable
-
runWithTry
Run method to be implemented by the derived class. Exceptions thrown will automatically get caught an rethrown on agetResult()
.- Throws:
Throwable
-