It is an overflow error exception and some components of the standard library also throw exceptions of this type to signal range errors.
Following is the declaration for std::overflow_error.
No-throw guarantee − no members throw exceptions.
constructor − what_arg has the same content as the value returned by member what.
what − It is used to get string identifying exception.