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);

No, we cannot use the package private constructor because
the exceptions are thrown from gnu.CORBA and other package
where all our functionality is concentrated.

But  I have another idea: use the public initCause method
before throwing an exception.

I added this to Classpath tasks.

Audrius.




_______________________________________________
Classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath

Reply via email to