std::system_error (3) - Linux Manuals
std::system_error: std::system_error
NAME
std::system_error - std::system_error
Synopsis
Defined in header <system_error>
class system_error; (since C++11)
std::system_error is the type of the exception thrown by various library functions (typically the functions that interface with the OS facilities, e.g. the constructor of std::thread) when the exception has an associated std::error_code, which may be reported.
std-system error-inheritance.svg
Inheritance diagram
Member functions
constructor (public member function)
code (public member function)
what returns explanatory string
[virtual]
Inherited from std::exception
Member functions
destructor destroys the exception object
[virtual]
what returns an explanatory string
[virtual]
Example
// Run this code
Output: