Package co.aikar.commands
Interface ExceptionHandler
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExceptionHandler
Functional interface to allow plugins to handle uncaught excetpions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexecute(BaseCommand command, RegisteredCommand registeredCommand, CommandIssuer sender, List<String> args, Throwable t)Called when an exception occurs while executing a command
If an exception handler properly handles an exception, the user will not be noticied by the framework that something went unexceptected.
-
-
-
Method Detail
-
execute
boolean execute(BaseCommand command, RegisteredCommand registeredCommand, CommandIssuer sender, List<String> args, Throwable t)
Called when an exception occurs while executing a command
If an exception handler properly handles an exception, the user will not be noticied by the framework that something went unexceptected.- Parameters:
command- the command that was executedregisteredCommand- the registered commandsender- the issuer who send the commandargs- the args he usedt- the throwable that caused this exception- Returns:
- if the exception was handeled by the exception handler.
-
-