- * NativeException if the native version of this method failed.
- */
- public native static Storage getByName(String name)
- throws HostNotFoundException, NullPointerException;
+ */
+ public static native Storage getByName(String name)
+ throws HostNotFoundException, StorageNotFoundException;