3 ms·
Unfortunately yeah - sometimes the brokenness of tr/catch you inherit from the platform level. Reminds me of when I was trying to write a Win8/Metro app for fu
by potatolicious 13y ago
Unfortunately yeah - sometimes the brokenness of tr/catch you inherit from the platform level.
Reminds me of when I was trying to write a Win8/Metro app for fun. Turns out in the particular network class I was using 404's throw exceptions. What a horrific design - 404 isn't an unexpected state at all, particularly when calling restful apis. But there we were, a pointless try/catch or nothing.
A lot of the brokenness with exceptions is software that models expected operational state as exceptions.
- windowsworkstoo 13y agoYes that was an issue with the old WebRequest classes, but now with System.Net.Http the situation is much better (though they did what most people end up doing and wrapping WebRequest in a sensible manner)