Browse Source

throwing exception on error

JNI-44
Volker Birk 10 years ago
parent
commit
357e19a07f
  1. 6
      src/gen_cpp_Engine.ysl2

6
src/gen_cpp_Engine.ysl2

@ -12,6 +12,7 @@ tstylesheet {
#include <assert.h>
#include <pEp/message_api.h>
#include "org_pEp_jniadapter_«@name».h"
#include "throw_pEp_exception.hh"
#include "jniutils.hh"
using namespace pEp::JNIAdapter;
@ -41,6 +42,11 @@ tstylesheet {
`` apply "parm[creates|returns]", mode=out
PEP_STATUS status = ::«@name»(session`apply "parm", mode=call``if "@name = 'encrypt_message'" > , PEP_enc_PEP`);
if ((status > PEP_STATUS_OK && status < PEP_UNENCRYPTED) |`> |`
status >= PEP_TRUSTWORD_NOT_FOUND) {
throw_pEp_Exception(env, status);
return NULL;
}
||

Loading…
Cancel
Save