Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
throw the right exception corresponding to HostFailureException, TransferFailureException
[simgrid.git] / src / java / simgrid / msg / MsgNative.java
index 5354200..e64718b 100644 (file)
@@ -11,6 +11,8 @@
 
 package simgrid.msg;
 
+/* FIXME: split into internal classes of Msg, Task, Host etc. */
+
 /**
  *  Contains all the native methods related to Process, Host and Task.
  */
@@ -424,7 +426,7 @@ final class MsgNative {
         **************************************************************** */
 
 
-       final static native void taskSend(String alias, Task task, double timeout) throws NativeException;
+       final static native void taskSend(String alias, Task task, double timeout) throws TransferFailureException,HostFailureException,NativeException;
        final static native Task taskReceive(String alias, double timeout, Host host) throws NativeException;
        final static native int taskListenFrom(String alias) throws NativeException;
        final static native boolean taskListen(String alias);