classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:oddity in CORBA code


From: Meskauskas Audrius
Subject: Re:oddity in CORBA code
Date: Fri, 3 Jun 2005 16:04:30 +0200

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.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]