[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:oddity in CORBA code: Great idea!
From: |
Meskauskas Audrius |
Subject: |
Re:oddity in CORBA code: Great idea! |
Date: |
Fri, 3 Jun 2005 13:34:44 +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);
Hello, Tom,
the package private constructor for exception chaining is a good idea,
and it would be excellent to do like you suggest. If the exception like
MARSHAL is caused by another exception, this will help a lot to
know the real reason of throwing it.
Adding just a message may not be enough because in some cases
the message is empty.
Audrius.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re:oddity in CORBA code: Great idea!,
Meskauskas Audrius <=