Interface StatementWithReturnValue<V>
public interface StatementWithReturnValue<V>
Code that returns a value if it is executed by
Fishbowl.exceptionThrownBy(Statement)
.
This code may throw a Throwable
. Therefore we cannot use
Callable
.-
Method Summary
-
Method Details
-
evaluate
Computes a value, or throws an exception if unable to do so.- Returns:
- computed value
- Throws:
Throwable
- an exception if it cannot compute the value
-