6492eb9683
Removed throwable and message, because the superclass already stores them Added message of inner exception to the outer exception to make the first line of the stacktrace more verbose By: Zeerix <zeerix@draig.de>
25 lines
667 B
Java
25 lines
667 B
Java
package org.bukkit.plugin;
|
|
|
|
/**
|
|
* Thrown when attempting to load an invalid Plugin file
|
|
*/
|
|
public class InvalidPluginException extends Exception {
|
|
private static final long serialVersionUID = -8242141640709409542L;
|
|
|
|
/**
|
|
* Constructs a new InvalidPluginException based on the given Exception
|
|
*
|
|
* @param cause Exception that triggered this Exception
|
|
*/
|
|
public InvalidPluginException(final Throwable cause) {
|
|
super("Invalid plugin" + (cause != null ? ": " + cause.getMessage() : ""), cause);
|
|
}
|
|
|
|
/**
|
|
* Constructs a new InvalidPluginException
|
|
*/
|
|
public InvalidPluginException() {
|
|
this(null);
|
|
}
|
|
}
|