domain_error

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 a copy of what_arg.data().