2 ms·
> URLs being invalid isn't an error; it's expected. Of course it is. Would you report back to the user: "Expected Behavior: Invalid Url."? I bet instead even
by bb88 4y ago
> URLs being invalid isn't an error; it's expected.
Of course it is. Would you report back to the user: "Expected Behavior: Invalid Url."? I bet instead even you would write: "Error: Invalid Url".
>> I ask because 1/0 is perfectly recoverable in most cases.
> It is recoverable, but only locally. No caller has any idea what to do with the fact that the callee divided by zero.
f(x) = x+1/x shouldn't crash your space station life support because it's undefined at 0. Just like tan() is undefined at pi/2. As you said, it's expected.