Browse Source

Print Exceptions from JNI side on messageToSend

JNI-88
Hussein Kasem 6 years ago
parent
commit
36fa395341
  1. 3
      src/foundation_pEp_jniadapter_AbstractEngine.cc

3
src/foundation_pEp_jniadapter_AbstractEngine.cc

@ -120,10 +120,12 @@ namespace pEp {
PEP_STATUS status = (PEP_STATUS) o.env()->CallIntMethod(obj, messageToSendMethodID, msg_);
if (o.env()->ExceptionCheck()) {
o.env()->ExceptionDescribe();
status = PEP_UNKNOWN_ERROR;
o.env()->ExceptionClear();
}
return status;
}
@ -329,6 +331,7 @@ extern "C" {
}
catch (RuntimeError& ex) {
throw_pEp_Exception(env, ex.status);
jvm->DetachCurrentThread();
return;
}
}

Loading…
Cancel
Save