| 15 | namespace pystack { |
| 16 | |
| 17 | class UnwinderError : public std::exception |
| 18 | { |
| 19 | public: |
| 20 | explicit UnwinderError(std::string error) |
| 21 | : d_error(std::move(error)){}; |
| 22 | |
| 23 | [[nodiscard]] const char* what() const noexcept override |
| 24 | { |
| 25 | return d_error.c_str(); |
| 26 | } |
| 27 | |
| 28 | private: |
| 29 | std::string d_error; |
| 30 | }; |
| 31 | |
| 32 | class Frame |
| 33 | { |
no outgoing calls
no test coverage detected