X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/181bf639ab120f75d897fd531573ade22076a123..ff4cb50da99dff92aba52db9c9a34bc6aee08788:/src/java/simgrid/msg/Process.java diff --git a/src/java/simgrid/msg/Process.java b/src/java/simgrid/msg/Process.java index 5a0fafc52a..f1e8049684 100644 --- a/src/java/simgrid/msg/Process.java +++ b/src/java/simgrid/msg/Process.java @@ -334,7 +334,7 @@ public abstract class Process extends Thread { /** * The main function of the process (to implement). */ - public abstract void main(String[]args) throws NativeException; + public abstract void main(String[]args) throws MsgException; public void unschedule() { @@ -353,13 +353,19 @@ public abstract class Process extends Thread { } } - /** Send the given task in the mailbox associated with the specified alias (waiting at most given time) */ - public void taskSend(String mailbox, Task task, double timeout) throws NativeException { + /** Send the given task in the mailbox associated with the specified alias (waiting at most given time) + * @throws TimeoutException + * @throws HostFailureException + * @throws TransferFailureException */ + public void taskSend(String mailbox, Task task, double timeout) throws NativeException, TransferFailureException, HostFailureException, TimeoutException { MsgNative.taskSend(mailbox, task, timeout); } - /** Send the given task in the mailbox associated with the specified alias*/ - public void taskSend(String mailbox, Task task) throws NativeException { + /** Send the given task in the mailbox associated with the specified alias + * @throws TimeoutException + * @throws HostFailureException + * @throws TransferFailureException */ + public void taskSend(String mailbox, Task task) throws NativeException, TransferFailureException, HostFailureException, TimeoutException { MsgNative.taskSend(mailbox, task, -1); }