| 168 | : StarException("StarException", std::move(message), cause) {} |
| 169 | |
| 170 | const char* StarException::what() const throw() { |
| 171 | if (m_whatBuffer.empty()) { |
| 172 | std::ostringstream os; |
| 173 | m_printException(os, false); |
| 174 | m_whatBuffer = os.str(); |
| 175 | } |
| 176 | return m_whatBuffer.c_str(); |
| 177 | } |
| 178 | |
| 179 | StarException::StarException(char const* type, std::string message, bool genStackTrace) noexcept { |
| 180 | auto printException = []( |
no test coverage detected