Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The try/catch/rethrow model can easily be substituted by just adding a `throws` to the method. If you truly don't care, just make your method `throws Exception` or even `throws Throwable` and let the automatic bubbling take care of making you handle exceptions at top level.


That (or rather checked exceptions in general) doesn't play well with lambdas / streams.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: