6 ms·
> In java or php, you, as a developer, can never know wether the functions you are calling will throw an exception. That's what checked exceptions are for in J
by tmhedberg 12y ago
> In java or php, you, as a developer, can never know wether the functions you are calling will throw an exception.
That's what checked exceptions are for in Java.
- gouggoug 12y agoThe larger problem with exceptions, checked or not, is that they interrupt the flow of your program, which is too bad since most exceptions are not that exceptional. That problem is exacerbated by developers who don't know how and when to throw exceptions and end up throwing exceptions for easily recoverable errors. The other thing I dislike about exception is that your code ends up with tons of try..catch blocks.