james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Burrell Donkin <robertburrelldon...@gmail.com>
Subject Re: [jira] Created: (IMAP-71) Design: Consolidate Sessions
Date Wed, 18 Mar 2009 13:27:38 GMT
On Wed, Mar 18, 2009 at 12:37 PM, Martin.Bergljung
<Martin.Bergljung@opsera.com> wrote:
> Some more design stuff:
> It should be possible to i18n error messages from any method in the API.


> 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);


> and then i18n properties files to resolve:
> mytexts.mailbox.exist.cannot.create=A mailbox with this name already exist, cannot create


fancy volunteering to contribute a patch along those lines?

- robert

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message