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

Finally a person who knows Java ;-)

For other readers the first 3 are all runtime exceptions and the last one is a checked exception that a lot of people complain about...

I think the last one is an example of why people hate checked exceptions and the solution to this was to create newer APIs that focus on UTF-8 that just don't throw that exception.




Why is "UnsupportedEncodingException" an issue?

It should throw only on creation and then never be an issue from that point forward, no?

If it's throwing everywhere then, as you point out, that is an API problem rather than a problem with exceptions, themselves.


Yes. It's 100% an API problem...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: