Peter Royal wrote:
On Wednesday, June 11, 2003, at 11:55 AM, Leif Mortenson wrote:

That is what it looked like. Any ideas on how I could get the behavior of simply
kicking out a message like "Password attribute not defined" and then have the
application exit fairly gracefully. The message is what is being thrown in the
ConfigurationException that is leading to the chain of failures in dependent
components.


Perhaps add an attribute to the Command objects of 'isFatal' or something and have the command manager stop processing commands if a fatal command fails to complete?

I think I have a better idea. How about adding a CommandFailureHandler to the CommandManager?

Currently all exceptions are ignored by the CommandManager, but this
way we can have any application customize what it chooses to do in
the event of a failure.  The return value will be a boolean value
for whether to close the CommandManager or not.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to