| 35 | inline bool haserror() const { return m_errormessage.size(); } |
| 36 | |
| 37 | std::string geterror(bool erase = true) |
| 38 | { |
| 39 | std::string s; |
| 40 | if (erase) |
| 41 | { |
| 42 | std::swap(s, m_errormessage); |
| 43 | } |
| 44 | else |
| 45 | { |
| 46 | s = m_errormessage; |
| 47 | } |
| 48 | return s; |
| 49 | } |
| 50 | |
| 51 | private: |
| 52 | std::string m_errormessage; |
no outgoing calls
no test coverage detected