Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
throw the right exception corresponding to TimeoutFailureException
[simgrid.git] / src / java / simgrid / msg / MsgNative.java
index 5354200..8afd36f 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.
  */
@@ -423,8 +425,7 @@ final class MsgNative {
         * Communication methods thru mailboxes                           *
         **************************************************************** */
 
-
-       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 NativeException,TransferFailureException,HostFailureException,TimeoutFailureException;
        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);