|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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(java.lang.String cmd)
Argument count error handler. |
void |
argumentFormatError(java.lang.String cmd,
java.lang.String arg)
Argument format error handler. |
void |
invocationError(java.lang.String cmd,
java.lang.Exception ex)
Invocation error handler. |
void |
unknownCommandError(java.lang.String cmd)
Unknown command error handler. |
Method Detail |
public void invocationError(java.lang.String cmd, java.lang.Exception ex)
cmd
- The command that was being processed.ex
- The exception that was thrown.public void argumentCountError(java.lang.String cmd)
cmd
- The command that was being processed.public void argumentFormatError(java.lang.String cmd, java.lang.String arg)
cmd
- The command that was being processed.arg
- The offending argument.public void unknownCommandError(java.lang.String cmd)
cmd
- The offending command.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |