Results 1 to 2 of 2

Thread: ICE user exception messages

  1. #1
    chris is offline Registered User
    Join Date
    Jan 2005
    Posts
    1

    ICE user exception messages

    Hi,

    I'm using ICE 2.0 with C# and am passing an exception from server to client.The SLICE definition contains the user exception with no fields defined. The exception is thrown on the server:

    throw new MyException("My message");

    The client gets the exception fine, except the mesage ("My message") is not present. Of course this minor problem can easily be got round, but is there any way to have the message text available on the client?

    Thanks
    Chris

  2. #2
    DeepDiver's Avatar
    DeepDiver is offline Registered User
    Name: Thomas Mueller
    Organization: Freelance Software Developer
    Project: Project depend on Customers
    Join Date
    Nov 2004
    Location
    Munich, Bavaria, Germany
    Posts
    105
    hi

    the message you pass to the constructor is taken by System.Exception.

    As you wrote:
    The SLICE definition contains the user exception with no fields defined
    So ICE doesn't know anything about your message.
    You need to add a filed to your exception and explicit assign your message
    to the member.

    cu tom

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. user exception causes unmarshalling exception
    By Stuart Brodsky in forum Help Center
    Replies: 9
    Last Post: 04-29-2009, 02:21 PM
  2. Problem with user-defined exception
    By gregors in forum Help Center
    Replies: 1
    Last Post: 03-19-2009, 06:26 AM
  3. Can user selfdefine exception overload operator
    By sober in forum Help Center
    Replies: 2
    Last Post: 06-04-2008, 09:10 AM
  4. Exception messages
    By panic in forum Comments
    Replies: 0
    Last Post: 10-19-2004, 04:33 AM
  5. some problem about user exception
    By fishinmoon in forum Help Center
    Replies: 1
    Last Post: 09-08-2004, 01:37 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
  •