public interface CommandProcessor
CommandDispatcher
.
CommandProcessor
is a minimal interface that declares error
handling methods for the CommandDispatcher
; however, the class
that implements this interface should also define all of the actual command
processing methods; reflection is used to analyze this class and compile a
command dictionary.CommandDispatcher
Modifier and Type | Method and Description |
---|---|
void |
argumentCountError(String cmd)
Argument count error handler.
|
void |
argumentFormatError(String cmd,
String arg)
Argument format error handler.
|
void |
invocationError(String cmd,
Exception ex)
Invocation error handler.
|
void |
unknownCommandError(String cmd)
Unknown command error handler.
|
void invocationError(String cmd, Exception ex)
cmd
- The command that was being processed.ex
- The exception that was thrown.void argumentCountError(String cmd)
cmd
- The command that was being processed.void argumentFormatError(String cmd, String arg)
cmd
- The command that was being processed.arg
- The offending argument.void unknownCommandError(String cmd)
cmd
- The offending command.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses