3 ms·
For checked exception, as you mention, "throws *" is throws Exception, then people can refine it on implementation. As many language feature, checked exception
by vmaurin 3y ago
For checked exception, as you mention, "throws *" is throws Exception, then people can refine it on implementation.
As many language feature, checked exception are often misused and/or misunderstood. Too many time I have seen people blindly propagating checked exception above, and you end up having a controller method exposing a SQLException. Then for sure, it is better to use unchecked exceptions overall