better-java-monads icon indicating copy to clipboard operation
better-java-monads copied to clipboard

Don't wrap runtime exceptions with another RuntimeException

Open longtimeago opened this issue 6 years ago • 1 comments

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?

longtimeago avatar Sep 24 '18 13:09 longtimeago

/cc @jasongoodwin

longtimeago avatar Sep 24 '18 13:09 longtimeago