A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
using shared Task to exchange data
[simgrid.git]
/
src
/
java
/
jxbt_utilities.c
diff --git
a/src/java/jxbt_utilities.c
b/src/java/jxbt_utilities.c
index
0a4ea4b
..
43047a6
100644
(file)
--- a/
src/java/jxbt_utilities.c
+++ b/
src/java/jxbt_utilities.c
@@
-102,7
+102,6
@@
jmethodID jxbt_get_static_smethod(JNIEnv * env, const char *classname,
{
jclass cls;
-
jmethodID id;
cls = jxbt_get_class(env, classname);
@@
-129,7
+128,6
@@
jmethodID jxbt_get_smethod(JNIEnv * env, const char *classname,
{
jclass cls;
-
jmethodID id;
cls = jxbt_get_class(env, classname);
@@
-246,7
+244,6
@@
void jxbt_throw_null(JNIEnv * env, char *msg)
jxbt_throw_by_name(env, "java/lang/NullPointerException", msg);
}
-
/* Errors on user side */
void jxbt_throw_illegal(JNIEnv * env, char *msg)
{
@@
-266,3
+263,40
@@
void jxbt_throw_process_not_found(JNIEnv * env, const char *invalid_name)
"simgrid/msg/ProcessNotFoundException",
bprintf("No such process: %s", invalid_name));
}
+
+// tranfert failure
+void jxbt_throw_transfer_failure(JNIEnv *env,char *details) {
+
+ jxbt_throw_by_name(env,
+ "simgrid/msg/TransferFailureException",
+ details);
+
+}
+
+// host failure Exception
+void jxbt_throw_host_failure(JNIEnv *env,char *details) {
+
+ jxbt_throw_by_name(env,
+ "simgrid/msg/HostFailureException",
+ bprintf("Host Failure %s",details));
+
+}
+
+// time out failure Exception
+void jxbt_throw_time_out_failure(JNIEnv *env,char *details) {
+
+ jxbt_throw_by_name(env,
+ "simgrid/msg/TimeoutException",
+ details);
+
+}
+
+// task Cancelled exception
+void jxbt_throw_task_cancelled(JNIEnv *env,char *details)
+{
+
+ jxbt_throw_by_name(env,
+ "simgrid/msg/TaskCancelledException",
+ details);
+
+}
\ No newline at end of file