C++ Language/ErrorHandling/ReturningAnErrorCode

From Wikibooks, open books for an open world
Jump to navigation Jump to search

When a low-level feature of the operating system needs to report an error, it usually does so by returning an "error code". The Win32 platform has four built-in enumerations of error codes, which the C++ language has combined into a single std::error_code type.

Additional information about error codes (includes interactive examples)