Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-2008, 11:41 PM
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
  #2 (permalink)  
Old 01-22-2008, 01:52 PM
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
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.