[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
oddity in CORBA code
From: |
Tom Tromey |
Subject: |
oddity in CORBA code |
Date: |
01 Jun 2005 11:55:36 -0600 |
In the CORBA code I see this:
[...]
catch (Exception ex)
{
throw new MARSHAL(ex + ":" + ex.getMessage());
}
This is weird since Throwable.toString() (i.e. the default) includes
getMessage. I think it would be a bit better to just use getMessage
here and add a package-private constructor to allow exception
chaining:
throw new MARSHAL(ex.getMessage(), ex);
Comments?
Tom
- oddity in CORBA code,
Tom Tromey <=