View Single Post
  #1 (permalink)  
Old 01-17-2008, 11:41 PM
Sbhingarkar Sbhingarkar is offline
Active Member
 
Posts: 30
Default Regarding Exception Message

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
Reply With Quote