class

<system_error>

std::system_error

class system_error : public runtime_error;

System error exception


This class defines the type of objects thrown as exceptions to report conditions originating during runtime from the operating system or other low-level application program interfaces which have an associated error_code.

The class inherits from runtime_error, to which it adds an error_code as member code (and defines a specialized what member).


Member functions

(constructor)
Construct system_error (public member function)
code
Get error code (public member function)
what
Get message associated to exception (public member function)