MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / LiteHandleException

Function LiteHandleException

lite/lite-c/src/global.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30} // namespace
31
32int LiteHandleException(const std::exception& e) {
33 LITE_LOCK_GUARD(mtx_error);
34 get_global_error().set_error_msg(e.what(), ErrorCode::LITE_INTERNAL_ERROR);
35 return -1;
36}
37
38ErrorCode LITE_get_last_error_code() {
39 LITE_LOCK_GUARD(mtx_error);

Callers

nothing calls this directly

Calls 2

set_error_msgMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected