4 ms·
> If it wouldn’t, an exception of that kind could bubble up at a place you didn’t expect. You should always be able to handle an unknown exception. Sure you c
by wvenable 3y ago
> If it wouldn’t, an exception of that kind could bubble up at a place you didn’t expect.
You should always be able to handle an unknown exception. Sure you can't do much about it, but it shouldn't be a big deal. An exception only occurs if the code can't continue as expected.
Libraries are supposed to be a point of abstraction. They should be allowed to change their implementation fundamentally as long as they continue to respect the same interface. Exceptions should not be part of the interface explicitly because are they implementation-detail related.