mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Separate InvalidDescriptionException -> InvalidPluginException
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
0cb7170b41
commit
14cfdcc567
2 changed files with 2 additions and 4 deletions
|
@ -19,7 +19,7 @@ public interface PluginLoader {
|
|||
* unsuccessful
|
||||
* @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
|
||||
|
|
|
@ -41,7 +41,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
|||
server = instance;
|
||||
}
|
||||
|
||||
public Plugin loadPlugin(File file) throws InvalidPluginException {
|
||||
public Plugin loadPlugin(File file) throws InvalidPluginException, InvalidDescriptionException {
|
||||
JavaPlugin result = null;
|
||||
PluginDescriptionFile description = null;
|
||||
|
||||
|
@ -63,8 +63,6 @@ public final class JavaPluginLoader implements PluginLoader {
|
|||
jar.close();
|
||||
} catch (IOException ex) {
|
||||
throw new InvalidPluginException(ex);
|
||||
} catch (InvalidDescriptionException ex) {
|
||||
throw new InvalidPluginException(ex);
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue