C++ Exception Library - system_error
Description
It is a system error exception and 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.
Declaration
Following is the declaration for std::system_error.
class system_error : public runtime_error;
C++11
class system_error : public runtime_error;
Parameters
none
Return Value
none
Exceptions
No-throw guarantee − no members throw exceptions.
Members
constructor − what_arg has the same content as the value returned by member what.
what − It is used to get string identifying exception.
exception.htm
Advertisements