summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/plugin/UnknownSoftDependencyException.java
blob: 8a39dd0ec745490669ca85c92707160de520010d (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package org.bukkit.plugin;

/**
 * Thrown when attempting to load an invalid Plugin file
 */
public class UnknownSoftDependencyException extends UnknownDependencyException {

    private static final long serialVersionUID = 5721389371901775899L;

    /**
     * Constructs a new UnknownSoftDependencyException based on the given Exception
     *
     * @param throwable Exception that triggered this Exception
     */
    public UnknownSoftDependencyException(Throwable throwable) {
        this(throwable, "Unknown soft dependency");
    }

    /**
     * Constructs a new UnknownSoftDependencyException with the given message
     *
     * @param message Brief message explaining the cause of the exception
     */
    public UnknownSoftDependencyException(final String message) {
        this(null, message);
    }

    /**
     * Constructs a new UnknownSoftDependencyException based on the given Exception
     *
     * @param message Brief message explaining the cause of the exception
     * @param throwable Exception that triggered this Exception
     */
    public UnknownSoftDependencyException(final Throwable throwable, final String message) {
        super(throwable, message);
    }

    /**
     * Constructs a new UnknownSoftDependencyException
     */
    public UnknownSoftDependencyException() {
        this(null, "Unknown dependency");
    }
}