class runtime_error : public exception {
public:
runtime_error(const string& what_arg);
};
The class serves as the base class for all exceptions thrown to report errors presumably detectable only when the
program executes. The value returned by what
()
is what_arg.
data
()
.