Skip to content
Advertisement

Tag: checked-exceptions

Guava cache and preserving checked exceptions

I’m refactoring some code to use guava Cache. Initial code: In order not to break something I need to preserve any thrown exception as is, without wrapping it. Current solution appears somewhat ugly: Is there any possible way to make it nicer? Answer Just after writing the question started thinking about utility method powered with generics. Then remembered something about

Advertisement