View Single Post
  #2 (permalink)  
Old 01-22-2008, 01:52 PM
JoshuaPrismon JoshuaPrismon is offline
Zimlet Guru & Moderator
 
Posts: 467
Default

Quote:
Originally Posted by Sbhingarkar View Post
Hi,
i want to throw an custom Exception with message SPELL_UNAVAILABLE follwing is the approach that i followed.

1.add property service.SPELL_UNAVAILABLE=spell check is not supported.in ZhMsg.properties

2. added method in ServiceException class
public static ServiceException SPELL_CHECK_UNAVAILABLE(String str) {
return new ServiceException (SPELL_CHECK_UNAVAILABLE + str, SPELL_CHECK_UNAVAILABLE, RECEIVERS_FAULT);
}

3. But when i am throwing this exception. Message shown in zimbra Client not shown the message only blank exception window open with out any message.

please let me if i am following some thing wrong procedure. or if there us any other process to thrown custom exception.

Regards,
-lalit
If you are editing the files in Zimbra code itself, probably not a great idea. Even adding the method later dynamically might be bad. Have you tried extending AjxException?
Reply With Quote