> >I have a Constants class and a Variable class.
> >
[quoted text clipped - 51 lines]
>
> - Oliver
>> >I have a Constants class and a Variable class.
>> >
[quoted text clipped - 58 lines]
>
> Any other suggestions?
Hmm... How about wrapping the exception in a runtime exception instead?
E.g. throw new InvocationException(e);
> P.S. I am using google groups. How did you generate the
> "news:1152825768.284557.43280@35g2000cwc.googlegroups.com..."
> "- Show quoted text -"
>
> links in your reply?
I'm not using Google Groups. My newsreader does it automatically.
- Oliver
Hendrik Maryns - 14 Jul 2006 09:51 GMT
Oliver Wong schreef:
>>> >I have a Constants class and a Variable class.
>>> >
[quoted text clipped - 63 lines]
> Hmm... How about wrapping the exception in a runtime exception
> instead? E.g. throw new InvocationException(e);
I’d say this is going from bad to worse.
First of all, a class Constants does not seem a very good idea to me.
Neither does Variable (except if you mean some sort of representation
for a mathematical variable for it).
I’d say: rethink the design, and never ever throw Exception(). I.e.
alter the getVariable() method, then the problem melts away.
>> P.S. I am using google groups. How did you generate the
>> "news:1152825768.284557.43280@35g2000cwc.googlegroups.com..."
[quoted text clipped - 3 lines]
>
> I'm not using Google Groups. My newsreader does it automatically.
Uh, no, Google does that automatically.
H.
- --
Hendrik Maryns
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html