The Artima Developer Community
Sponsored Link

Interface on Exception

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Interface on Exception

Posted by olivier on 18 Jun 1998, 6:44 AM

I agree that it's a good idea to subclass exception as the IOException exemple you give.
The problem is that it is not possible to give some throwable interface.
To fix the idea, it is impossible to have an IOException that is a RuntimeException at the same time.
Sun should have create Runtime as a kind of Interface (idem for IOException in a sense).




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us