4 ms·
If your API guarantees that the error you return has a specific type, then you have to follow your promise. If your API only specifies that AN ERROR is returne
by paskozdilar 5y ago
If your API guarantees that the error you return has a specific type, then you have to follow your promise.
If your API only specifies that AN ERROR is returned, then it's a bug in the user code to rely on an implementation detail.