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

I agree that, if you are working with checked exceptions, that’s certainly better than adding garbage to your interface.

But for many types of checked exception you just end up wrapping the underlying exception in a foo exception anyway.

I think you are right: if you are using exceptions for error handling, of errors you expect people to actually deal with, this is currently a reasonable (if painful) option to ensure exhaustive analysis of returns — which most people agree is a good thing these days I think, what with mainstream popularization of options etc.



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

Search: