4 ms·
Who couldn't make it work properly, the language designer, the stdlib writers or the Java programmers? There is no way to make e.g. InterruptedException "work
by speed_spread 3y ago
Who couldn't make it work properly, the language designer, the stdlib writers or the Java programmers?
There is no way to make e.g. InterruptedException "work properly" as a checked exception since there is nothing intelligent one can do about it that's specific to this exception class. Rewrapping as RuntimeEx is just as much weaseling out but using more code and messing up stack trace for no good reason.
Also, thanks for answering my request for a fight. Winter is boring.
- int_19h 3y agoThe language designers, because they wanted to have checked exceptions without the complexity of genericizing them. Exceptions that aren't meant to be handled really shouldn't be exceptions in the first place, but that's a separate design issue.