CppCommon  1.0.4.1
C++ Common Library
errors_system_error.cpp

System error example

#include <iostream>
int main(int argc, char** argv)
{
std::cout << "Last system error: " << CppCommon::SystemError::GetLast() << std::endl;
std::cout << "Last system description: " << CppCommon::SystemError::Description() << std::endl;
return 0;
}
static int GetLast() noexcept
Get the last system error code.
static std::string Description()
Convert the last system error code to the system error description.
Definition: system_error.h:52
System error definition.