header
<stdexcept>
Exception classes
This header defines a set of standard exceptions that both the library and programs can use to report common errors.
They are divided in two sets:
Logic errors:
- logic_error
- Logic error exception (class
)
- domain_error
- Domain error exception (class
)
- invalid_argument
- Invalid argument exception (class
)
- length_error
- Length error exception (class
)
- out_of_range
- Out-of-range exception (class
)
Runtime errors:
- runtime_error
- Runtime error exception (class
)
- range_error
- Range error exception (class
)
- overflow_error
- Overflow error exception (class
)
- underflow_error
- Underflow error exception (class
)