create a custom Exception with a set of error codes and messages?
This is what we've done in the past. We'd assign a set of error codes in the ApplicationResources file. and throw an exception like this:
throw new MyException("12345", ...);
And catch it like this:
try { .... } catch (MyException e) { errors.addError(new ActionMessage(e.getErrorCode()); }
That may not be completely correct, but something similar to that.
Greg
Any thoughts? How do others handle this?
Nick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]