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 message.
011         */
012        public CommandException() {}
013    
014        /**
015         * Constructs an instance of <code>CommandException</code> with the specified detail message.
016         *
017         * @param msg the detail message.
018         */
019        public CommandException(String msg) {
020            super(msg);
021        }
022    
023        public CommandException(String msg, Throwable cause) {
024            super(msg, cause);
025        }
026    }