com.talanlabs.java.lambda.ThrowingFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of try Show documentation
Show all versions of try Show documentation
Help to get exception in java 8 lambda
The newest version!
package com.talanlabs.java.lambda;
/**
* A function throwing an exception.
*/
public interface ThrowingFunction {
/**
* Applies this function to the given argument.
*
* @param i the function argument
* @return the function result
* @throws Exception
*/
O apply(I i) throws Exception;
}