|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Helper class for the 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
Method Summary | |
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. |
Method Detail |
public void invocationError(String cmd, Exception ex)
cmd
- The command that was being processed.ex
- The exception that was thrown.public void argumentCountError(String cmd)
cmd
- The command that was being processed.public void argumentFormatError(String cmd, String arg)
cmd
- The command that was being processed.arg
- The offending argument.public void unknownCommandError(String cmd)
cmd
- The offending command.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |