Lines Matching defs:exception
34 static void PrintException(JSVM_Env env, JSVM_Value exception, const char *call)
37 JSVM_Status status = OH_JSVM_IsObject(env, exception, &isObject);
42 status = OH_JSVM_GetNamedProperty(env, exception, "stack", &stack);
46 printf("[PrintException] exception.stack: %s\n", stackStr);
48 status = OH_JSVM_GetNamedProperty(env, exception, "message", &stack);
52 printf("[PrintException] exception.message: %s\n", messageStr);
64 JSVM_Value exception;
65 status = OH_JSVM_GetAndClearLastException(env, &exception);
68 status = OH_JSVM_IsUndefined(env, exception, &isExceptionUndefined);
74 PrintException(env, exception, call);
77 // no exception