Basics of PluginDescriptionFile

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2010-12-24 11:20:20 +00:00
parent 284ae0df7f
commit 7cdc2d46c2
2 changed files with 103 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
package org.bukkit.plugin;
/**
* Thrown when attempting to load an invalid PluginDescriptionFile
*/
public class InvalidDescriptionException extends Exception {
private final Exception innerException;
/**
* Constructs a new InvalidDescriptionException based on the given Exception
*
* @param exception Exception that triggered this Exception
*/
public InvalidDescriptionException(Exception exception) {
innerException = exception;
}
/**
* Constructs a new InvalidDescriptionException
*/
public InvalidDescriptionException() {
innerException = null;
}
/**
* If applicable, returns the Exception that triggered this InvalidDescriptionException
*
* @return Inner exception, or null if one does not exist
*/
public Exception getInnerException() {
return innerException;
}
}