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

Attributes? Why not just

throw new RuntimeException(exception);

Edit: If there weren't exceptions for every mundane thing I think I would prefer no checked exceptions also.



Because you've in essence bypassed the entire checked-exception system anyway?


How? You acknowledged that the exception exists. You didn't do that by putting 'throws' on everything.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: