MCPcopy Create free account
hub / github.com/armory3d/armory / handle_exception

Function handle_exception

armorcore/Sources/worker.cpp:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 void handle_exception(Isolate* isolate, TryCatch* try_catch) {
116 MaybeLocal<Value> trace = try_catch->StackTrace(isolate->GetCurrentContext());
117 if (trace.IsEmpty()) {
118 v8::String::Utf8Value stack_trace(isolate, try_catch->Message()->Get());
119 kinc_log(KINC_LOG_LEVEL_ERROR, "uncaught exception %s", *stack_trace);
120 }
121 else {
122 v8::String::Utf8Value stack_trace(isolate, trace.ToLocalChecked());
123 kinc_log(KINC_LOG_LEVEL_ERROR, "uncaught exception %s", *stack_trace);
124 }
125 }
126
127 void worker_post_message(const FunctionCallbackInfo<Value>& args) {
128 Isolate* isolate = args.GetIsolate();

Callers 1

worker_thread_funcFunction · 0.70

Calls 3

ToLocalCheckedMethod · 0.80
IsEmptyMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected