Class FunctionExceptionHandler
- java.lang.Object
-
- de.hybris.platform.cms2.common.functions.impl.FunctionExceptionHandler
-
public class FunctionExceptionHandler extends java.lang.ObjectUtility class to handle checked exceptions in lambdas.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R> java.util.function.Supplier<R>supplier(ThrowableSupplier<R> supplier)Converts aThrowableSupplierto aSupplierthan can throw exceptions by converting them to unchecked exceptions.
-
-
-
Method Detail
-
supplier
public static <R> java.util.function.Supplier<R> supplier(ThrowableSupplier<R> supplier)
Converts aThrowableSupplierto aSupplierthan can throw exceptions by converting them to unchecked exceptions.- Parameters:
supplier- AThrowableSupplierthan can throw any exception- Returns:
- a
Supplierof results.
-
-