| 23 | #include "ModuleException.h" |
| 24 | |
| 25 | std::string CModuleException::GetErrorString() const { |
| 26 | std::string out; |
| 27 | for (const auto &x : m_strError) |
| 28 | out += x + '\n'; |
| 29 | if (!m_strFooter.empty()) |
| 30 | out += m_strFooter; |
| 31 | else |
| 32 | out.pop_back(); |
| 33 | |
| 34 | return out; |
| 35 | } |
| 36 | |
| 37 | void CModuleException::AppendError(std::string str) { |
| 38 | m_strError.push_back(std::move(str)); |
no test coverage detected