Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 44 lines 1.4 kB view raw
1package org.bukkit.plugin; 2 3/** 4 * Thrown when attempting to load an invalid Plugin file 5 */ 6public class UnknownSoftDependencyException extends UnknownDependencyException { 7 8 private static final long serialVersionUID = 5721389371901775899L; 9 10 /** 11 * Constructs a new UnknownSoftDependencyException based on the given Exception 12 * 13 * @param throwable Exception that triggered this Exception 14 */ 15 public UnknownSoftDependencyException(Throwable throwable) { 16 this(throwable, "Unknown soft dependency"); 17 } 18 19 /** 20 * Constructs a new UnknownSoftDependencyException with the given message 21 * 22 * @param message Brief message explaining the cause of the exception 23 */ 24 public UnknownSoftDependencyException(final String message) { 25 this(null, message); 26 } 27 28 /** 29 * Constructs a new UnknownSoftDependencyException based on the given Exception 30 * 31 * @param message Brief message explaining the cause of the exception 32 * @param throwable Exception that triggered this Exception 33 */ 34 public UnknownSoftDependencyException(final Throwable throwable, final String message) { 35 super(throwable, message); 36 } 37 38 /** 39 * Constructs a new UnknownSoftDependencyException 40 */ 41 public UnknownSoftDependencyException() { 42 this(null, "Unknown dependency"); 43 } 44}