3 ms·
I agree with the first sentence. Your code should throw custom exceptions. But it shouldn’t wrap other exceptions, if they are obvious. If library.readconfigfi
by andix 4y ago
I agree with the first sentence. Your code should throw custom exceptions.
But it shouldn’t wrap other exceptions, if they are obvious. If library.readconfigfile(path) throws an IO exception while reading the file, just let it bubble up to the caller and don’t bother handling it. Just make sure your internal state is clean (catch..finally)