Function SystemErrorCode.wasSuccessful
Returns if the code indicated success.
bool wasSuccessful() const;
Please note that many calls do not actually set a code to success, but rather just don't touch it. Thus this may only be true on init.