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.
Strong guarantee − if the constructor throws an exception, there are no side effects.
constructor − what_arg has the same content as the value returned by member what.
what − It is used to get string identifying exception.