Defined in header
Defines a type of object to be thrown as exception. It reports errors that arise because integer value in some computation could not be represented as it had too large positive value. If the value has floating point type, std::range_error should be used.
| constructs the exception object |
(public member function)
explicit overflow_error( const std::string& what_arg );
explicit overflow_error( const char* what_arg );
Constructs the exception object with
what_arg as explanatory string that can be accessed through what().