MCPcopy Create free account
hub / github.com/catboost/catboost / ProcessException

Function ProcessException

catboost/python-package/catboost/helpers.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28extern "C++" PyObject* PyCatboostExceptionType;
29
30void ProcessException() {
31 try {
32 throw;
33 } catch (const TCatBoostException& exc) {
34 PyErr_SetString(PyCatboostExceptionType, exc.what());
35 } catch (const TInterruptException& exc) {
36 PyErr_SetString(PyExc_KeyboardInterrupt, exc.what());
37 } catch (const std::exception& exc) {
38 PyErr_SetString(PyCatboostExceptionType, exc.what());
39 }
40}
41
42void PyCheckInterrupted() {
43 TGilGuard guard;

Callers 1

ProcessArrowArrayStreamFunction · 0.70

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected