better-java-monads
better-java-monads copied to clipboard
Don't wrap runtime exceptions with another RuntimeException
We've found the lib very useful, thanks for it!
Unfortunately, there is one thing which prevents it to be used with org.springframework.web.bind.annotation.ControllerAdvice
exception handling contrroller from spring-mvc
Every time the lib catchers exception it wraps the exception with RuntimeException
.
Would it be better to wrap only checked exceptions and propagate unckecked as they are?
/cc @jasongoodwin