| 35 | } |
| 36 | |
| 37 | class CustomException { |
| 38 | public: |
| 39 | explicit CustomException(const std::string& msg) |
| 40 | : m_msg(msg) {} |
| 41 | |
| 42 | std::string const& getMessage() const { |
| 43 | return m_msg; |
| 44 | } |
| 45 | |
| 46 | private: |
| 47 | std::string m_msg; |
| 48 | }; |
| 49 | |
| 50 | class CustomStdException : public std::exception { |
| 51 | public: |
no outgoing calls