MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / LGBM_APIHandleException

Function LGBM_APIHandleException

src/c_api.cpp:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace LightGBM {
32
33inline int LGBM_APIHandleException(const std::exception& ex) {
34 LGBM_SetLastError(ex.what());
35 return -1;
36}
37inline int LGBM_APIHandleException(const std::string& ex) {
38 LGBM_SetLastError(ex.c_str());
39 return -1;

Callers

nothing calls this directly

Calls 2

LGBM_SetLastErrorFunction · 0.50
whatMethod · 0.45

Tested by

no test coverage detected