class domain_error : public logic_error { public: domain_error(const string& what_arg); };
The class serves as the base class for all exceptions thrown to report a domain error. The value returned by what() is what_arg.data().
what
()
what_arg.
data