MCPcopy Create free account
hub / github.com/Cantera/cantera / addError

Method addError

src/base/application.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36static std::mutex app_mutex;
37
38void Application::Messages::addError(const string& r, const string& msg)
39{
40 if (msg.size() != 0) {
41 errorMessage.push_back(
42 "\n\n************************************************\n"
43 " Cantera Error! \n"
44 "************************************************\n\n"
45 "Procedure: " + r +
46 "\nError: " + msg + "\n");
47 } else {
48 errorMessage.push_back(r);
49 }
50}
51
52int Application::Messages::getErrorCount()
53{

Callers 2

handleAllExceptionsFunction · 0.45
handleAllExceptionsFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected