MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / what

Method what

source/core/StarException_windows.cpp:170–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 : StarException("StarException", std::move(message), cause) {}
169
170const 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
179StarException::StarException(char const* type, std::string message, bool genStackTrace) noexcept {
180 auto printException = [](

Callers 3

StarExceptionMethod · 0.45
printExceptionFunction · 0.45
outputExceptionFunction · 0.45

Calls 3

emptyMethod · 0.45
strMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected