Class CommandException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sk89q.minecraft.util.commands.CommandException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommandPermissionsException, CommandUsageException, UnhandledCommandException, WrappedCommandException

public class CommandException extends Exception
See Also:
  • Constructor Details

    • CommandException

      public CommandException()
    • CommandException

      public CommandException(String message)
    • CommandException

      public CommandException(String message, Throwable t)
    • CommandException

      public CommandException(Throwable t)
  • Method Details

    • prependStack

      public void prependStack(String name)
    • getCommandUsed

      public String getCommandUsed(String prefix, @Nullable String spacedSuffix)
      Gets the command that was called, which will include the sub-command (i.e. "/br sphere").
      Parameters:
      prefix - the command shebang character (such as "/") -- may be empty
      spacedSuffix - a suffix to put at the end (optional) -- may be null
      Returns:
      the command that was used