summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/plugin/InvalidPluginException.java
blob: 66abea742affd69e75bdca3563beb7f0fca14eea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.bukkit.plugin;

/**
 * Thrown when attempting to load an invalid Plugin file
 */
public class InvalidPluginException extends Exception {
    private static final long serialVersionUID = -8242141640709409543L;

    /**
     * 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);
    }
}