Package com.atlassian.crowd.function
Class ExceptionTranslators
java.lang.Object
com.atlassian.crowd.function.ExceptionTranslators
Utility class transforming lambdas with checked exceptions to lambdas without exceptions.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoRuntimeException
(ExceptionTranslators.FunctionWithException<F, T, E> function, Function<Exception, ? extends RuntimeException> exceptionTranslator) static <F,
T> Function<F, T>
-
Constructor Details
-
ExceptionTranslators
public ExceptionTranslators()
-
-
Method Details
-
toRuntimeException
public static <F,T, Function<F,E extends Exception> T> toRuntimeException(ExceptionTranslators.FunctionWithException<F, T, E> function, Function<Exception, ? extends RuntimeException> exceptionTranslator) -
toRuntimeException
public static <F,T> Function<F,T> toRuntimeException(ExceptionTranslators.FunctionWithException<F, T, RuntimeException> function)
-