Interface CommandExceptionHandler<E extends CommandException>
- Type Parameters:
E- The type of CommandException to handle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for handling CommandExceptions.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(CommandContext context, E exception) Handle a CommandException.
-
Method Details
-
handle
Handle a CommandException.- Parameters:
context- The context of the command executionexception- The exception thrown- Returns:
- true if the exception was handled and onCommand should return true, false otherwise
-