MCPcopy Create free account
hub / github.com/TNG/boost-python-examples / translateException

Function translateException

12-Exceptions/myexceptions.cpp:5–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3struct OutOfSteakException {};
4
5void translateException( const OutOfSteakException& x) {
6 PyErr_SetString(PyExc_UserWarning, "The meat is gone, go for the cheese....");
7};
8
9void someFunction() {
10 throw OutOfSteakException();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected