X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/95250056fde87d7c6413baa5cc3724fd8f9a83f9..e3b238eaf75f5bbe14b203615c1bdc4f4b5247ed:/src/jxbt_utilities.h diff --git a/src/jxbt_utilities.h b/src/jxbt_utilities.h index 3b0bb4f468..c395041c5e 100644 --- a/src/jxbt_utilities.h +++ b/src/jxbt_utilities.h @@ -65,6 +65,8 @@ jfieldID jxbt_get_sfield(JNIEnv * env, const char *classname, jxbt_throw_task_cancelled(env,detail); \ } } while (0) +/* Throws an exception according to its name */ +void jxbt_throw_by_name(JNIEnv * env, const char *name, char *msg); /** Thrown on internal error of this layer, or on problem with JNI */ void jxbt_throw_jni(JNIEnv * env, const char *msg); /** Thrown when using an object not bound to a native one where it should, or reverse (kinda JNI issue) */