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
- See Also:
-
Constructor Summary
ConstructorDescriptionCommandException
(String message) CommandException
(String message, Throwable t) -
Method Summary
Modifier and TypeMethodDescriptiongetCommandUsed
(String prefix, String spacedSuffix) Gets the command that was called, which will include the sub-command (i.e.void
prependStack
(String name) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandException
public CommandException() -
CommandException
-
CommandException
-
CommandException
-
-
Method Details
-
prependStack
-
getCommandUsed
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 emptyspacedSuffix
- a suffix to put at the end (optional) -- may be null- Returns:
- the command that was used
-