Exception that will be caught via the module local translator.
| 39 | |
| 40 | // Exception that will be caught via the module local translator. |
| 41 | class LocalException : public std::exception { |
| 42 | public: |
| 43 | explicit LocalException(const char *m) : message{m} {} |
| 44 | const char *what() const noexcept override { return message.c_str(); } |
| 45 | |
| 46 | private: |
| 47 | std::string message = ""; |
| 48 | }; |
| 49 | |
| 50 | // Exception that will be registered with register_local_exception_translator |
| 51 | class LocalSimpleException : public std::exception { |
no outgoing calls