Constructor and Description |
---|
RunnableWithResult() |
Modifier and Type | Method and Description |
---|---|
T |
getResult()
Get the result of the run execution.
|
T |
getResultFromTry()
Get the result of the run execution.
|
void |
run() |
void |
runWithTry()
Run method to be implemented by the derived class.
|
public T getResult()
public T getResultFromTry() throws Throwable
Throwable
- exceptions encountered during runpublic void runWithTry() throws Throwable
getResult()
.Throwable