|
|
|
|
|
by philf
5132 days ago
|
|
> You end up having to declare 40 exceptions that you might throw. And once you aggregate that with another subsystem you've got 80 exceptions in your throws clause. It just balloons out of control. What he completely ignores is the possibility to wrap exceptions to either aggregate them or to convert them into unchecked exceptions. |
|
Whether you convert the throws clause to a common supertype (which very soon converges to the base type Exception), or wrap everything in a RuntimeException, you are effectively emulating a language without checked exceptions. So what was the point in the first place?