2010-12-24 12:20:20 +01:00
|
|
|
|
|
|
|
package org.bukkit.plugin;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Thrown when attempting to load an invalid PluginDescriptionFile
|
|
|
|
*/
|
|
|
|
public class InvalidDescriptionException extends Exception {
|
2011-01-01 02:38:17 +01:00
|
|
|
private static final long serialVersionUID = 5721389122281775894L;
|
|
|
|
private final Throwable cause;
|
2010-12-24 12:20:20 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs a new InvalidDescriptionException based on the given Exception
|
|
|
|
*
|
2010-12-24 17:41:51 +01:00
|
|
|
* @param throwable Exception that triggered this Exception
|
2010-12-24 12:20:20 +01:00
|
|
|
*/
|
2010-12-24 17:41:51 +01:00
|
|
|
public InvalidDescriptionException(Throwable throwable) {
|
|
|
|
cause = throwable;
|
2010-12-24 12:20:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs a new InvalidDescriptionException
|
|
|
|
*/
|
|
|
|
public InvalidDescriptionException() {
|
2010-12-24 17:41:51 +01:00
|
|
|
cause = null;
|
2010-12-24 12:20:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2010-12-24 17:41:51 +01:00
|
|
|
* If applicable, returns the Exception that triggered this Exception
|
2010-12-24 12:20:20 +01:00
|
|
|
*
|
|
|
|
* @return Inner exception, or null if one does not exist
|
|
|
|
*/
|
2010-12-24 17:41:51 +01:00
|
|
|
@Override
|
|
|
|
public Throwable getCause() {
|
|
|
|
return cause;
|
2010-12-24 12:20:20 +01:00
|
|
|
}
|
|
|
|
}
|