RosettaCodeData/Task/Exceptions/C++/exceptions-3.cpp

6 lines
130 B
C++
Raw Normal View History

2025-08-11 18:05:26 -07:00
#include <exception>
struct MyException: std::exception
2023-07-01 11:58:00 -04:00
{
2025-08-11 18:05:26 -07:00
virtual const char* what() const noexcept { return "description"; }
2023-07-01 11:58:00 -04:00
}