Results 1 to 2 of 2

Thread: Regarding Exception Message

  1. #1
    Sbhingarkar is offline Active Member
    Join Date
    Jul 2007
    Posts
    30
    Rep Power
    8

    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

  2. #2
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Upgraded to 5.0 OSS - Sendmail Problem
    By Chewie71 in forum Installation
    Replies: 11
    Last Post: 12-28-2007, 07:07 PM
  2. Error loading on Mac OS X 10.4.10 server PPC
    By qprcanada in forum Installation
    Replies: 7
    Last Post: 10-26-2007, 06:25 AM
  3. Replies: 3
    Last Post: 07-19-2007, 02:00 AM
  4. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  5. Replies: 4
    Last Post: 08-10-2006, 10:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •