Throwing exceptions from unimplemented classes?

Andrew Haley aph@redhat.com
Tue Oct 12 17:54:00 GMT 2004


Doctor Bill writes:
 > Excuse the newbie question, but has there been any consideration given
 > to throwing a RuntimeException from unimplemented classes?
We did this a little bit before, and it was disastrous. It means that
people don't get a compile time error but a runtime error instead.
If you really need to do this sort of thing, whayt not use
Class.getMethod?
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /