Hi,
Configuration: Ice=3.3.1, VS2009, WinXP, Language C#
I have created a user exception in the Ice file.
exception TickError;
["ami"] void Tick() throws TickError;
The server side code throws a TickError exception and the argument for TickError is a custom .net exception
void Tick(Ice.Current current__)
{
try
{
... blah
throw new CustomException("My message");
... blah
}
catch (CustomException ex)
{
throw new TickError(ex);
}
}
The client side implements the ice_exception(Ice.Exception ex) method. However I cannot obtain the message that was used to create CustomException. The Message field of the exception received by ice_exception() contains the type of message, eg ex.Message = SDS.Slice.TickError.

Reply With Quote