You need to throw an instanceof RuntimeException.

On 01/05/2008, at 9:24 AM, Owen McKerrow wrote:

Now this may be a basic Java question and I tried to ask it yesterday, but probably in a very poor fashion.

When your dealing with overriding a method and the original method does not throw an exception, but you do in your over-ride you receive a compile error something like....

"terminate() in Session cannot override terminate() in Session; overridden method does not throw java.lang.Exception"

Which means that any exceptions that are thrown you need to deal with them at this methods level, correct ? Or is there a way to throw them without this message appearing

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lachlan.deck%40gmail.com

This email sent to [EMAIL PROTECTED]

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to