Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[java] Add missing throw NativeException specifications, fix javadoc
[simgrid.git] / src / bindings / java / org / simgrid / msg / Storage.java
index 1b7950163ccf98e996600ac565117047eab42b10..d9ccd5a66c61817752b6cf6f156927e604c1aeb1 100644 (file)
@@ -47,10 +47,10 @@ public class Storage {
         *
         * @return              The storage object with the given name.
         * @exception           StorageNotFoundException if the name of the storage is not valid.
-        *                                      NativeException if the native version of this method failed.
+        * @exception           NativeException if the native version of this method failed.
         */ 
        public native static Storage getByName(String name) 
-                       throws HostNotFoundException, NullPointerException;
+                       throws HostNotFoundException, NullPointerException, NativeException, StorageNotFoundException;
 
        /**
         * This method returns the name of a storage.
@@ -120,4 +120,4 @@ public class Storage {
                nativeInit();
        }               
 
-}
\ No newline at end of file
+}