Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
CommandException.java
1 package org.bukkit.command;
2 
3 /**
4  * Thrown when an unhandled exception occurs during the execution of a Command
5  */
6 @SuppressWarnings("serial")
7 public class CommandException extends RuntimeException {
8 
9  /**
10  * Creates a new instance of <code>CommandException</code> without detail
11  * message.
12  */
13  public CommandException() {}
14 
15  /**
16  * Constructs an instance of <code>CommandException</code> with the
17  * specified detail message.
18  *
19  * @param msg the detail message.
20  */
21  public CommandException(String msg) {
22  super(msg);
23  }
24 
25  public CommandException(String msg, Throwable cause) {
26  super(msg, cause);
27  }
28 }