public interface ICommandException
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
.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
default void |
handle(ICommand command,
java.util.List<ICommandArgument> args)
Called when this exception is thrown, to handle the exception.
|
java.lang.String getMessage()
Throwable.getMessage()
default void handle(ICommand command, java.util.List<ICommandArgument> args)
command
- The command that threw it.args
- The arguments the command was called with.