001 package org.bukkit.plugin; 002 003 /** 004 * Thrown when attempting to load an invalid PluginDescriptionFile 005 */ 006 public class InvalidDescriptionException extends Exception { 007 private static final long serialVersionUID = 5721389122281775896L; 008 009 /** 010 * Constructs a new InvalidDescriptionException based on the given 011 * Exception 012 * 013 * @param message Brief message explaining the cause of the exception 014 * @param cause Exception that triggered this Exception 015 */ 016 public InvalidDescriptionException(final Throwable cause, final String message) { 017 super(message, cause); 018 } 019 020 /** 021 * Constructs a new InvalidDescriptionException based on the given 022 * Exception 023 * 024 * @param cause Exception that triggered this Exception 025 */ 026 public InvalidDescriptionException(final Throwable cause) { 027 super("Invalid plugin.yml", cause); 028 } 029 030 /** 031 * Constructs a new InvalidDescriptionException with the given message 032 * 033 * @param message Brief message explaining the cause of the exception 034 */ 035 public InvalidDescriptionException(final String message) { 036 super(message); 037 } 038 039 /** 040 * Constructs a new InvalidDescriptionException 041 */ 042 public InvalidDescriptionException() { 043 super("Invalid plugin.yml"); 044 } 045 }