| 30 | namespace exception |
| 31 | { |
| 32 | struct arithmetic_error : std::runtime_error |
| 33 | { |
| 34 | explicit arithmetic_error(const std::string& reason) : std::runtime_error("Arithmetic error: " + reason) {} |
| 35 | arithmetic_error(const arithmetic_error &) = default; |
| 36 | ~arithmetic_error() noexcept override = default; |
| 37 | }; |
| 38 | } |
| 39 | } |
| 40 |
no outgoing calls
no test coverage detected