I have not done Java for many years, but from what I remember, just like other languages โโwith exceptions and OO. Exceptions can be subclassed, and often you want to catch the base class of many exceptions, but you cannot handle all of them. Say you handle remote file transfers and want to catch all IOErrors because you handle most of them, but not DiskFull. You can change this, and let someone else handle this down the chain, but deal with other issues, such as TransmissionFailed, by re-transmitting the transmission.
Lee b source share