DEV Community

Discussion on: Hide Checked Exceptions with SneakyThrows

Collapse
 
victorrentea profile image
Victor Rentea

Either (or vavr.Try) might be overkill to add everywhere for large codebases. It actually depends: if you are integrating with a system/library that throws a lot of checked exceptions at you, @SneakyThrows might not be a bad idea. On the other hand, using it just a few places it might indeed increase the risk, as people will probably be unaware of what it does and its hidden quirks.