| 32 | ExceptionBase(std::string message) : m_message(message) { } |
| 33 | virtual ~ExceptionBase() noexcept {} |
| 34 | virtual const char* what() const noexcept { |
| 35 | // return custom message |
| 36 | return m_message.c_str(); |
| 37 | } |
| 38 | virtual std::string py_message() const { |
| 39 | // return complete message for Python exception handling |
| 40 | return m_message; |
no outgoing calls
no test coverage detected