class
<stdexcept>
std::underflow_error
Underflow error exception
- exception
- runtime_error
- underflow_error
This class defines the type of objects thrown as exceptions to arithmetic underflow errors.
No component of the standard library throws exceptions of this type. It is designed as a standard exception to be thrown by programs.
It is defined as:
|
|
|
|
Members
- constructor
- The string passed as what_arg has the same content as the value returned by member what.
The class inherits the what member function from runtime_error.
Exception safety
Strong guarantee: if the constructor throws an exception, there are no side effects.See also
- exception
- Standard exception class (class)
- logic_error
- Logic error exception (class)
- runtime_error
- Runtime error exception (class)
- range_error
- Range error exception (class)
- overflow_error
- Overflow error exception (class)