@FunctionalInterface public interface ExceptionHandler
| Modifier and Type | Method and Description |
|---|---|
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. |
boolean execute(BaseCommand command, RegisteredCommand registeredCommand, CommandIssuer sender, List<String> args, Throwable t)
command - the command that was executedregisteredCommand - the registered commandsender - the issuer who send the commandargs - the args he usedt - the throwable that caused this exceptionCopyright © 2017. All rights reserved.