Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
InvalidDescriptionException.java
1 package org.bukkit.plugin;
2 
3 /**
4  * Thrown when attempting to load an invalid PluginDescriptionFile
5  */
6 public class InvalidDescriptionException extends Exception {
7  private static final long serialVersionUID = 5721389122281775896L;
8 
9  /**
10  * Constructs a new InvalidDescriptionException based on the given
11  * Exception
12  *
13  * @param message Brief message explaining the cause of the exception
14  * @param cause Exception that triggered this Exception
15  */
16  public InvalidDescriptionException(final Throwable cause, final String message) {
17  super(message, cause);
18  }
19 
20  /**
21  * Constructs a new InvalidDescriptionException based on the given
22  * Exception
23  *
24  * @param cause Exception that triggered this Exception
25  */
26  public InvalidDescriptionException(final Throwable cause) {
27  super("Invalid plugin.yml", cause);
28  }
29 
30  /**
31  * Constructs a new InvalidDescriptionException with the given message
32  *
33  * @param message Brief message explaining the cause of the exception
34  */
35  public InvalidDescriptionException(final String message) {
36  super(message);
37  }
38 
39  /**
40  * Constructs a new InvalidDescriptionException
41  */
43  super("Invalid plugin.yml");
44  }
45 }
InvalidDescriptionException(final Throwable cause, final String message)