3 ms·
Checked exceptions are possibly the worst feature of Java. Why? I absolutely hate C++ codebases where all of a sudden you get yet another type of exception tha
by danieldk 12y ago
Checked exceptions are possibly the worst feature of Java.
Why? I absolutely hate C++ codebases where all of a sudden you get yet another type of exception that was not documented, possibly because the exception was thrown ten functions down (up) the stack.
In Java, at the very least you know what to expect and can prepare for it. Unfortunately, even there people try to avoid exceptions by throwing classes that derive from RuntimeException.
Given that Java has no sum types, checked exceptions are really the next best thing.