mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Separate InvalidDescriptionException -> InvalidPluginException
This commit is contained in:
parent
9b227081f5
commit
71c12aadc9
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue