Class FunctionExceptionHandler
java.lang.Object
de.hybris.platform.cms2.common.functions.impl.FunctionExceptionHandler
Utility class to handle checked exceptions in lambdas.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R> Supplier<R>supplier(ThrowableSupplier<R> supplier) Converts aThrowableSupplierto aSupplierthan can throw exceptions by converting them to unchecked exceptions.
-
Method Details
-
supplier
Converts aThrowableSupplierto aSupplierthan can throw exceptions by converting them to unchecked exceptions.- Parameters:
supplier- AThrowableSupplierthan can throw any exception- Returns:
- a
Supplierof results.
-