A type that should be translated to MyException and delegated to its exception translator
| 60 | // A type that should be translated to MyException |
| 61 | // and delegated to its exception translator |
| 62 | class MyException4 : public std::exception { |
| 63 | public: |
| 64 | explicit MyException4(const char *m) : message{m} {} |
| 65 | const char *what() const noexcept override { return message.c_str(); } |
| 66 | |
| 67 | private: |
| 68 | std::string message = ""; |
| 69 | }; |
| 70 | |
| 71 | // Like the above, but declared via the helper function |
| 72 | class MyException5 : public std::logic_error { |
no outgoing calls