This class defines the type of objects thrown as exceptions to report range errors in internal computations.
It is a standard exception that can be thrown by programs. Some components of the standard library also throw exceptions of this type to signal range errors.
It is defined as:
1 2 3 4
class range_error : public runtime_error {
public:
explicit range_error (const string& what_arg);
};
1 2 3 4 5
class range_error : public runtime_error {
public:
explicit range_error (const string& what_arg);
explicit range_error (constchar* what_arg);
};
Members
constructor
The string passed as what_arg has the same content as the value returned by member what.