CppCommon 1.0.5.0
C++ Common Library
Loading...
Searching...
No Matches
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.
System error definition.