Hi,
That's correct, the Java language mapping does not have Ice.Exception because we wanted user exceptions to derive from java.lang.Exception (and therefore be checked exceptions) whereas the Ice run time's local exceptions derive from java.lang.RuntimeException. If you want to catch all Ice exceptions or distinguish between user and local exceptions, you can structure your code as follows:
Code:
try
{
...
}
catch(Ice.UserException ex)
{
}
catch(Ice.LocalException ex)
{
}
Otherwise, you can trap all exceptions by catching java.lang.Exception.
Take care,
- Mark