| 18 | |
| 19 | namespace BinaryNinjaDebugger { |
| 20 | class ConnectionRefusedError : public std::exception |
| 21 | { |
| 22 | std::string m_error; |
| 23 | |
| 24 | public: |
| 25 | ConnectionRefusedError(const std::string& error) : std::exception(), m_error(error) {} |
| 26 | #ifdef __GNUC__ |
| 27 | virtual const char* what() const noexcept |
| 28 | { |
| 29 | return m_error.c_str(); |
| 30 | } |
| 31 | #else |
| 32 | virtual const char* what() const |
| 33 | { |
| 34 | return m_error.c_str(); |
| 35 | } |
| 36 | #endif |
| 37 | }; |
| 38 | |
| 39 | |
| 40 | class ProcessStartError : public std::exception |
nothing calls this directly
no outgoing calls
no test coverage detected