[overflow.error]

# 19 Diagnostics library [[diagnostics]](./#diagnostics)

## 19.2 Exception classes [[std.exceptions]](std.exceptions#overflow.error)

### 19.2.10 Class overflow_error [overflow.error]

[ð](#lib:overflow_error)

namespace std {class overflow_error : public runtime_error {public:constexpr explicit overflow_error(const string& what_arg); constexpr explicit overflow_error(const char* what_arg); };}

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/diagnostics.tex#L381)

The classoverflow_error defines the type of objects thrown as exceptions to report an arithmetic overflow error[.](#1.sentence-1)

[ð](#lib:overflow_error,constructor)

`constexpr overflow_error(const string& what_arg);
`

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/diagnostics.tex#L392)

*Postconditions*: strcmp(what(), what_arg.c_str()) == 0[.](#2.sentence-1)

[ð](#lib:overflow_error,constructor_)

`constexpr overflow_error(const char* what_arg);
`

[3](#3)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/diagnostics.tex#L403)

*Postconditions*: strcmp(what(), what_arg) == 0[.](#3.sentence-1)
