|
|
|
|
|
by jdm2212
1062 days ago
|
|
Checked exceptions failed because 99 times out of 100 the exception is not recoverable, so the try/catch block is just wasting everyone's time. (In 7 years as a Java dev I can think of one time I wrote code that tried to recover from IOException instead of just making the caller retry.) Even when the exceptions is theoretically recoverable, it has to get propagated up properly to the caller who should be handling recovery from it. But checked exceptions don't propagate sanely through executors and across RPC calls, so good luck with that. |
|
The try/catch construct require too much code for the common propagate case.
It would be nice if Java had a similar construct for error handling.