Separate InvalidDescriptionException -> InvalidPluginException

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-01-05 22:45:54 +00:00
parent 0cb7170b41
commit 14cfdcc567
2 changed files with 2 additions and 4 deletions

View file

@ -19,7 +19,7 @@ public interface PluginLoader {
* unsuccessful * unsuccessful
* @throws InvalidPluginException Thrown when the specified file is not a plugin * @throws InvalidPluginException Thrown when the specified file is not a plugin
*/ */
public Plugin loadPlugin(File file) throws InvalidPluginException; public Plugin loadPlugin(File file) throws InvalidPluginException, InvalidDescriptionException;
/** /**
* Returns a list of all filename filters expected by this PluginLoader * Returns a list of all filename filters expected by this PluginLoader

View file

@ -41,7 +41,7 @@ public final class JavaPluginLoader implements PluginLoader {
server = instance; server = instance;
} }
public Plugin loadPlugin(File file) throws InvalidPluginException { public Plugin loadPlugin(File file) throws InvalidPluginException, InvalidDescriptionException {
JavaPlugin result = null; JavaPlugin result = null;
PluginDescriptionFile description = null; PluginDescriptionFile description = null;
@ -63,8 +63,6 @@ public final class JavaPluginLoader implements PluginLoader {
jar.close(); jar.close();
} catch (IOException ex) { } catch (IOException ex) {
throw new InvalidPluginException(ex); throw new InvalidPluginException(ex);
} catch (InvalidDescriptionException ex) {
throw new InvalidPluginException(ex);
} }
try { try {