Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ars
7y ago
0 comments
Share
This only works if I'm throwing the exceptions myself, but not if I'm using a library function (like a rowMapper for example).
0 comments
default
newest
oldest
vbezhenar
7y ago
You can write wrapper which takes function that can throw anything and returns regular java.util.function.Function. Here's example:
https://github.com/rainerhahnekamp/sneakythrow/blob/master/s...
j
/
k
navigate · click thread line to collapse