This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Throwing exceptions from unimplemented classes?
- From: Andrew Haley <aph at redhat dot com>
- To: Doctor Bill <docbill at gmail dot com>
- Cc: "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>
- Date: Tue, 12 Oct 2004 18:54:40 +0100
- Subject: Throwing exceptions from unimplemented classes?
- References: <23bcb870041012104512ada4e4@mail.gmail.com>
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.