Module io.hotmoka.exceptions
Package io.hotmoka.exceptions.functions
Interface FunctionWithExceptions<T,R>
- Type Parameters:
T- the type of the parameter of the functionR- the type of the result of the function
public interface FunctionWithExceptions<T,R>
A function that might throw exceptions.
-
Method Summary
-
Method Details
-
apply
Applies the function.- Parameters:
t- the argument to the function- Returns:
- the result of the function
- Throws:
Throwable- any exception thrown by the function
-