On Wed, Mar 18, 2009 at 12:37 PM, Martin.Bergljung <martin.berglj...@opsera.com> wrote: > Some more design stuff: > > It should be possible to i18n error messages from any method in the API.
+1 > For example, if I today try to create a mailbox which already exist, I get > the following message displayed in the > Email client: > > "Cannot create the folder. The server responded: 'CREATE processing failed'" > > It does not tell me what is wrong and it gives me unimportant information. > > > The message should be generated with similar technique to what is available > for subscribe(): > > throw new > SubscriptionException(HumanReadableTextKey.GENERIC_SUBSCRIPTION_FAILURE); > > So for mailbox exist exception I would like to throw: > > throw new MailboxException(MyTextKey.MAILBOX_EXIST_CANNOT_CREATE); +1 > and then i18n properties files to resolve: > > mytexts.mailbox.exist.cannot.create=A mailbox with this name already exist, > cannot create it! +1 fancy volunteering to contribute a patch along those lines? - robert --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org