Derived form the runtime_error class, an object of range_error is used for exceptions due to runtime out of range errors.
runtime_error(const string& what_arg); range_error(const string& what_arg);
Constructs an object of the class range_error. Initializes exception::what to the what_arg argument