001 package org.bukkit.command;
002
003 /**
004 * Thrown when an unhandled exception occurs during the execution of a Command
005 */
006 @SuppressWarnings("serial")
007 public class CommandException extends RuntimeException {
008
009 /**
010 * Creates a new instance of <code>CommandException</code> without detail
011 * message.
012 */
013 public CommandException() {}
014
015 /**
016 * Constructs an instance of <code>CommandException</code> with the
017 * specified detail message.
018 *
019 * @param msg the detail message.
020 */
021 public CommandException(String msg) {
022 super(msg);
023 }
024
025 public CommandException(String msg, Throwable cause) {
026 super(msg, cause);
027 }
028 }