Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.command;
2
3/**
4 * Thrown when an unhandled exception occurs during the execution of a Command
5 */
6public class CommandException extends RuntimeException {
7
8 /**
9 * Creates a new instance of <code>CommandException</code> without detail message.
10 */
11 public CommandException() {
12 }
13
14 /**
15 * Constructs an instance of <code>CommandException</code> with the specified detail message.
16 *
17 * @param msg the detail message.
18 */
19 public CommandException(String msg) {
20 super(msg);
21 }
22
23 public CommandException(String msg, Throwable cause) {
24 super(msg, cause);
25 }
26}