3 ms·
Consensus could be a synonym here for 'current trends'. I see no advantage of returning error types over checked exceptions. I'm happy to be informed, though.
by EngineerBetter 8y ago
Consensus could be a synonym here for 'current trends'.
I see no advantage of returning error types over checked exceptions. I'm happy to be informed, though.
- jenscow 8y agoYou obviously haven't written any win32 applications :) Where a function may return zero, non-zero, not-ERROR_SUCCESS, INVALID_HANDLE, NULL, (there's more), to indicate an error. You then need to call GetLastError which gives you a number that you input into google to get a generic error message. You "should" also wrap every api call in this error checking so you know where the failure began.