# Uses of Interface
org.springframework.util.function.ThrowingFunction

Packages that use ThrowingFunction
Package
Description
org.springframework.util.function
Useful generic `java.util.function` helper classes.

## Uses of ThrowingFunction in org.springframework.util.function

Methods in org.springframework.util.function that return ThrowingFunction
Modifier and Type
Method
Description
`static <T, R> ThrowingFunction<T,R>`
ThrowingFunction.`of(ThrowingFunction<T,R> function)`
Lambda friendly convenience method that can be used to create a `ThrowingFunction` where the `apply(Object)` method wraps any checked exception thrown by the supplied lambda expression or method reference.
`static <T, R> ThrowingFunction<T,R>`
ThrowingFunction.`of(ThrowingFunction<T,R> function, BiFunction<String,Exception,RuntimeException> exceptionWrapper)`
Lambda friendly convenience method that can be used to create a `ThrowingFunction` where the `apply(Object)` method wraps any thrown checked exceptions using the given `exceptionWrapper`.
`default ThrowingFunction<T,R>`
ThrowingFunction.`throwing(BiFunction<String,Exception,RuntimeException> exceptionWrapper)`
Return a new `ThrowingFunction` where the `apply(Object)` method wraps any thrown checked exceptions using the given `exceptionWrapper`.
Methods in org.springframework.util.function with parameters of type ThrowingFunction
Modifier and Type
Method
Description
`static <T, R> ThrowingFunction<T,R>`
ThrowingFunction.`of(ThrowingFunction<T,R> function)`
Lambda friendly convenience method that can be used to create a `ThrowingFunction` where the `apply(Object)` method wraps any checked exception thrown by the supplied lambda expression or method reference.
`static <T, R> ThrowingFunction<T,R>`
ThrowingFunction.`of(ThrowingFunction<T,R> function, BiFunction<String,Exception,RuntimeException> exceptionWrapper)`
Lambda friendly convenience method that can be used to create a `ThrowingFunction` where the `apply(Object)` method wraps any thrown checked exceptions using the given `exceptionWrapper`.