001 package org.bukkit.plugin; 002 003 /** 004 * Thrown when attempting to load an invalid Plugin file 005 */ 006 public class InvalidPluginException extends Exception { 007 private static final long serialVersionUID = -8242141640709409544L; 008 009 /** 010 * Constructs a new InvalidPluginException based on the given Exception 011 * 012 * @param cause Exception that triggered this Exception 013 */ 014 public InvalidPluginException(final Throwable cause) { 015 super(cause); 016 } 017 018 /** 019 * Constructs a new InvalidPluginException 020 */ 021 public InvalidPluginException() { 022 023 } 024 025 /** 026 * Constructs a new InvalidPluginException with the specified detail 027 * message and cause. 028 * 029 * @param message the detail message (which is saved for later retrieval 030 * by the getMessage() method). 031 * @param cause the cause (which is saved for later retrieval by the 032 * getCause() method). (A null value is permitted, and indicates that 033 * the cause is nonexistent or unknown.) 034 */ 035 public InvalidPluginException(final String message, final Throwable cause) { 036 super(message, cause); 037 } 038 039 /** 040 * Constructs a new InvalidPluginException with the specified detail 041 * message 042 * 043 * @param message TThe detail message is saved for later retrieval by the 044 * getMessage() method. 045 */ 046 public InvalidPluginException(final String message) { 047 super(message); 048 } 049 }