MCPcopy Create free account
hub / github.com/SimVascular/SimVascular / PyUtilGetMsgPrefix

Function PyUtilGetMsgPrefix

Code/Source/PythonAPI/PyUtils.cxx:152–156  ·  view source on GitHub ↗

-------------------- PyUtilGetMsgPrefix -------------------- Get the string used to prefix an error message for the Python API. When an error occurs in the API PyErr_SetString() is called with an error message and the enclosing function returns NULL. The Python API does not automatically print the function name where an exception occurs so add it to the string passed to PyErr_SetString() using th

Source from the content-addressed store, hash-verified

150// using the prefix created here.
151//
152std::string PyUtilGetMsgPrefix(const std::string& functionName)
153{
154 std::string msgp = functionName + "() ";
155 return msgp;
156}
157
158//----------------------
159// PyUtilResetException

Callers 2

PyUtilApiFunctionMethod · 0.85
PyUtilSetupApiFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected