MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / catch

Function catch

Source/Lua/CtrlrLuaManager.cpp:1036–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034 luabind::call_function <void>(callbacks[timerId].o, timerId);
1035 }
1036 catch (const luabind::error &e)
1037 {
1038 LuaTimerCallback cb = callbacks[timerId];
1039 cb.isValid = false;
1040
1041 callbacks.set (timerId, cb);
1042 const char* a = lua_tostring(e.state(), -1);
1043 AlertWindow::showMessageBox (AlertWindow::WarningIcon, "Timer callback error, timer id that failed was: " + String(timerId), String(e.what()) + "\n" + String(a) + "\n\nCallback disabled");
1044 }
1045 }
1046 }
1047}

Callers

nothing calls this directly

Calls 3

stateMethod · 0.80
StringFunction · 0.50
setMethod · 0.45

Tested by

no test coverage detected