3 ms·
YAGNI principle should be followed here. Do not throw custom exception until you need it. If the time arises, do a simple refactoring. For libraries that's mor
by vbezhenar 4y ago
YAGNI principle should be followed here. Do not throw custom exception until you need it. If the time arises, do a simple refactoring.
For libraries that's more nuanced and good unchecked exception hierarchy is a part of good API.