Package de.chojo.sqlutil.exceptions
Interface ThrowingFunction<R,T,E extends Exception>
- Type Parameters:
R- type of resultT- type of inputE- type of exception
public interface ThrowingFunction<R,T,E extends Exception>
Represents a function which can throw an exception.
this is usefull when you need to delegate checked exceptions
-
Method Summary
-
Method Details
-
apply
A function which maps a value to another value and can throw an exception- Parameters:
t- input- Returns:
- value
- Throws:
E- if something went wrong
-