out_of_range

class out_of_range : public logic_error {
public:
    out_of_range(const string& what_arg);
    };

The class serves as the base class for all exceptions thrown to report an argument that is out of its valid range. The value returned by what() is what_arg.data().