Re:Checked exceptions: Java’s biggest mistake (2014)
by aeternum on Friday September 11, 2020 @03:08PM
(#24446242)
I've found that in practice it leads to very generic exception names.
When a new failure mode is found for a lowlevel component, in other languages devs would add a new specific exception and things would generally work. In Java, devs have to modify every intermediate component to handle or pass the new exception type so they end up just using an existing one that is super generic.
When a new failure mode is found for a lowlevel component, in other languages devs would add a new specific exception and things would generally work. In Java, devs have to modify every intermediate component to handle or pass the new exception type so they end up just using an existing one that is super generic.