Package baritone.api.command.exception
Interface ICommandException
- All Known Implementing Classes:
CommandErrorMessageException,CommandException,CommandInvalidArgumentException,CommandInvalidStateException,CommandInvalidTypeException,CommandNoParserForTypeException,CommandNotEnoughArgumentsException,CommandNotFoundException,CommandTooManyArgumentsException,CommandUnhandledException
public interface ICommandException
The base for a Baritone Command Exception, checked or unchecked. Provides a
handle(ICommand, List) method that is used to provide useful output
to the user for diagnosing issues that may have occurred during execution.
Anything implementing this interface should be assignable to Exception.
- Since:
- 9/20/2019
- Author:
- Brady
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidhandle(ICommand command, List<ICommandArgument> args) Called when this exception is thrown, to handle the exception.
-
Method Details
-
getMessage
- Returns:
- The exception details
- See Also:
-
handle
Called when this exception is thrown, to handle the exception.- Parameters:
command- The command that threw it.args- The arguments the command was called with.
-